Linux Terminal Glossary
›
I/O Redirection & Pipes
I/O Redirection & Pipes
20 commands
command > file.txt
command >> file.txt
command < file.txt
command 2> error.log
command 2>> error.log
command > out.txt 2> err.txt
command 2>&1
command > out.txt 2>&1
command &> file.txt
command > /dev/null
command 2>/dev/null
command &>/dev/null
cmd1 | cmd2
cmd1 | tee file.txt | cmd2
cmd1 |& cmd2
diff <(cmd1) <(cmd2)
cmd1 > >(cmd2)
cat file.txt | xargs grep 'pattern'
exec 3> file.txt
exec 3>&-
Search all 7,657 commands
instead.