Miscellaneous *nix commands

 

grep
  • Recursive grep: find . -print | xargs grep 'string'
  • Find multiple words: grep -l \(hrpay04\|HRPAY04\|dctmdev\|DCTMDEV\)
    vi
  • global search and replace: :%s/n/

    rcp
  • rcp -p source dest username@host:path/file

    tar (unix)
  • tar -cvf - <files> | gzip > file.tar.gz
  • gunzip < file.tar.gz | tar xvf -

    stty
  • stty erase '^h'

    ldd
  • Determine the shared libraries needed by an execuaable file: ldd <filename>