UW ACM : Introductory Unix Cheat Sheet

Text Editors

Basic Commands

  pico emacs / xemacs vi / vim
Open / Read File Ctrl-r Ctrl-x Ctrl-f :r
Save / Write File Ctrl-o Ctrl-x Ctrl-s :w
Quit Ctrl-x Ctrl-x Ctrl-c :q
Internal Help Ctrl-g Ctrl-h :h

Getting More Information

  Tutorial Quick Reference
pico Not necessary Bottom of screen
emacs / xemacs Ctrl-h t (inside emacs) http://www.refcards.com
vi / vim vimtutor (at the cmd prompt) ACM Webpage



Useful Commands

pine Read your email
ln Create links from one file/directory to another (kind of like Windows shortcuts
less, more Read text from a file (without modifying it) or prevent output from scrolling off-screen
grep Search for a string or regular expression in specified files
find Search for a file with specified charecteristics
finger Get information on other users
passwd Change your Unix password
which Locate where a command / executable is
diff Find the difference between two text files
ps List current running processes
kill Kill current processes



Use man or info for more information about these commands!






This tutorial provided by UW ACM
Questions to hctang@cs, zanfur@cs
http://www.cs.washington.edu/orgs/acm/tutorials/