Standard error
2
Redirection examples
Format:
1) command 2>&1 | less
2) command >
Examples:
1) ls > dirlist 2>&1
direct both standard output and standard error to the file dirlist, while the command
2) ls 2>&1 > dirlist
direct standard output to dirlist
Standard output
1
2 important symbols
1) >
2) |
Standard input
0
read from standard input and write to standard output and files
tee command
eg.
tee -a