mirror of
https://github.com/sahinakkaya/til.git
synced 2024-10-18 09:59:36 +02:00
9 lines
196 B
Markdown
9 lines
196 B
Markdown
1. Redirect stdout to one file and stderr to another file:
|
|
```bash
|
|
command > out 2>error
|
|
```
|
|
2. Redirect stdout to a file `out`, and then redirect stderr to stdout:
|
|
```bash
|
|
command > out 2>&1
|
|
```
|