31 lines
528 B
Markdown
31 lines
528 B
Markdown
# Console Utility
|
|
|
|
## Build Process
|
|
```sh
|
|
git clone https://git.gandc.ru/gandc/pr2_sysprog.git && cd pr2_sysprog
|
|
mkdir build && cd build
|
|
cmake ..
|
|
make
|
|
```
|
|
|
|
## Usage Examples
|
|
- Display users and home directories:
|
|
```sh
|
|
./console_utility -u
|
|
```
|
|
- Display running processes:
|
|
```sh
|
|
./console_utility -p
|
|
```
|
|
- Redirect output to a log file:
|
|
```sh
|
|
./console_utility -u -l output.log
|
|
```
|
|
- Redirect errors to a file:
|
|
```sh
|
|
./console_utility -p -e errors.log
|
|
```
|
|
- Show help:
|
|
```sh
|
|
./console_utility -h
|
|
``` |