Use `&>` for redirecting stdout & stderr

pull/170/head
grossws 2015-07-09 12:01:14 +03:00
parent 151bde506a
commit cea683ee43
1 changed files with 1 additions and 1 deletions

View File

@ -121,7 +121,7 @@ Notes:
- Know about "here documents" in Bash, as in `cat <<EOF ...`.
- In Bash, redirect both standard output and standard error via: `some-command >logfile 2>&1`. Often, to ensure a command does not leave an open file handle to standard input, tying it to the terminal you are in, it is also good practice to add `</dev/null`.
- In Bash, redirect both standard output and standard error via: `some-command &>logfile` (which means `some-command >logfile 2>&1`). Often, to ensure a command does not leave an open file handle to standard input, tying it to the terminal you are in, it is also good practice to add `</dev/null`.
- Use `man ascii` for a good ASCII table, with hex and decimal values. For general encoding info, `man unicode`, `man utf-8`, and `man latin1` are helpful.