mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 10:02:10 +02:00

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>
458 B
458 B
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
andstderr
to a file:
{{command}} &> {{path/to/file}}
- Redirect both
stdout
andstderr
to/dev/null
to keep the terminal output clean:
{{command}} &> /dev/null