mirror of
https://github.com/sahinakkaya/til.git
synced 2024-11-14 04:59:38 +01:00
9 lines
184 B
Markdown
9 lines
184 B
Markdown
1. Redirect stdout to one file and stderr to another file:
|
|
|
|
command > out 2>error
|
|
|
|
2. Redirect stdout to a file `out`, and then redirect stderr to stdout:
|
|
|
|
command > out 2>&1
|
|
|