File Commands$ cat fileName $ cat > myFile cd cmp $ cp originalFileName newFileName cut diff join $ ls -l $ ls $ ls -al $ mkdir dirName $ mv orignalFileName newFileName nl $ touch fileName $ pwd $ rm fileName $ rm -f dirName wc $ ln -s file link $ head fileName $ tail fileName $ tail -f file SSH & Secure File Copying$ scp fileName your_username@remotehost.edu:/some/remote/directory sftp $ ssh user@host $ ssh -p portNumber user@host $ ssh-copy-id user@host Process Management$ ps $ top $ kill pid $ killall proc $ bg $ fg $ fg A renice File & Group Permissions chmod chgrp groups Searching$ grep [pattern] files $ grep -r [pattern] dir $ find file $ locate file xargs Compression$ tar xf fileName.tar $ tar cf fileName.tar files $ tar czf fileName.tar.gz files $ tar xzf fileName.tar.gz $ tar cjf fileName.tar.bz2 files $ tar xjf fileName.tar.bz2 $ gzip fileName $ gzip -d file.gz $ gunzip file.gz System Information$ date $ cal $ uptime $ w $ whoami $ finger userName $ uname -a $ cat /proc/cpuinfo $ cat /proc/meminfo $ man command $ df $ du $ free $ whereis appName $ which app $ history $ lpr $ lpq mesg Compilation & Debuggingddd gcc g++ gdb gmake make Generally Useful Toolsispell dos2unix unix2dos $ clear $ xlock ShortcutsCtrl + C Ctrl + Z Ctrl + D Ctrl + W Ctrl + U Ctrl + R !! exit Network$ ping host $ whois domainName $ dig domainName $ dig -x hostName $ wget fileName $ wget -c file |