UNIX tips and tricks

Last updated: 14 March 2002 by nieusma@firstlink.com

Filesystems

  • local disk vs. NFS
  • root access in NFS
  • df
  • du
  • using /tmp


    regular expressions

  • man ed
  • man regex
  • man -s 5 regex


    text filters

  • cut
  • awk
  • grep
  • egrep
  • head
  • tail & tail -f
  • join
  • wc
  • sed
  • expand
  • tr
  • fmt
  • sort
  • uniq
  • zcat
  • cool commands

  • at
  • cal
  • bg
  • fg
  • logger (cmd & pipeline)
  • mailx
  • netstat
  • ps
  • pgrep
  • pkill(killall)
  • strings
  • look
  • spell
  • diff & diff -r
  • find | xargs
  • tar (to /tmp, to pipeline)
  • tee & tee -a
  • dig
  • nslookup
  • whois -h (fucknsi, arin)
  • script


    editors

  • ed
  • ex
  • edit
  • perl
  • pico
  • emacs
  • vi