<, >, |, $: add page (#13846)
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Wiktor Perskawiec <git@spageektti.cc> Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
This commit is contained in:
20
pages/common/greater-than.md
Normal file
20
pages/common/greater-than.md
Normal file
@@ -0,0 +1,20 @@
|
||||
# Greater than
|
||||
|
||||
> Redirect output to a file.
|
||||
> More information: <https://gnu.org/software/bash/manual/bash.html#Redirecting-Output>.
|
||||
|
||||
- Redirect `stdout` to a file:
|
||||
|
||||
`{{command}} > {{path/to/file}}`
|
||||
|
||||
- Append to a file:
|
||||
|
||||
`{{command}} >> {{path/to/file}}`
|
||||
|
||||
- Redirect both `stdout` and `stderr` to a file:
|
||||
|
||||
`{{command}} &> {{path/to/file}}`
|
||||
|
||||
- Redirect both `stdout` and `stderr` to `/dev/null` to keep the terminal output clean:
|
||||
|
||||
`{{command}} &> /dev/null`
|
Reference in New Issue
Block a user