Useful Unix Commands

TASK COMMAND
 FILESYSTEMS Triple click selects all, cut/paste to terminal
TOP 10 Largest ten files/directories in filesystem, sorted by kilobyte-size
du -ao /filesystem | sort -n | tail
  Largest file in your personal directory
du -sk * .??* | sort -nr | more
TAR tar all files in the current directory to STDOUT (Solaris) tar cvf - .
  ..and gzip it tar cvf - . | gzip > file.tar.gz
  ..gzip and delete the original tar cvf - . | gzip -9 > filename.tar.gz
  tar more than one directory (not trees)

tar cvf - . -C /dir1 -C dir2

  indiscriminantly tar everything in a directory by listed file extension (improves compression) tar cvf - `ls | sort -t. +1` | gzip > file.tar.gz