Simple Redirections Flashcards
1
Q
Standard error
A
2
2
Q
Redirection examples
A
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
3
Q
Standard output
A
1
4
Q
2 important symbols
A
1) >
2) |
5
Q
Standard input
A
0
6
Q
read from standard input and write to standard output and files
A
tee command
eg.
tee -a
- appending input to the files