Useful Linux Commands - Part 6

The following are a list of commonly used Linux Administration Commands.

Pipes and Redirection

Linux Command Description
cmd > file Send output from cmd to file
cmd >> file Append output from cmd to file
> file Null file - make file Zero bytes in size
cmd > /dev/null Discard all output from command
cmd 2> file Send stderr output of command to file
cmd 1>&2 Send stdout to same place as stderr
cmd 2>&1 Send stderr to same place as stdout
cmd1 | cmd2 Stdout of cmd1 to cmd2
cmd &> file All output from cmd goes to file