Commonly used Unix commands

To type a special character
E.g., CTRL-V CTRL-X, CTRL-V TAB

Sort lines in files:
sort -k 2,2 -k 1,1 file1 file2 > file.out
Default column separator: white spaces
See also: here

View file content:
less -S file (-S: no line wrapping)

To print source code: (webpage)
a2ps -2 -E --printer=4a-ls-duplex -L88 -l100 files ...

To get the system information:
uname -a (linux information)
free (memory information)
cat /proc/cpuinfo (cpu information)
cat /proc/version, cat /proc/filesystems
/sbin/lsmod (show modules)


Last modified: Mon Apr 18 17:56:32 Central Daylight Time 2005