Unix commands reference card Abbreviations used C-x cmd d f n [] hold down control key and press x a unix command such as ls, cd, etc directory filename number optional argument Caution 1 l the number 1 (read carefully) the letter l (read carefully) Unix Command man cat f more f cat f1 f2 > f3 ls [d] ls -l [d] cp f1 f2 mv f1 f2 rm f mkdir d rmdir d Description Unix online help (man ls, man cd, man cat, etc) List contents of file List file contents by screen Concatenates f1 & f2 into f3 List files in directory (ls –a) (ls > f) List files in detail (list all files) (capture listing in file f ) (cp f1 d) (cp d1 d2) Copy file f1 into f2 (or f1 into directory d) (or d1 into d2) (mv f1 d) (mv d1 d2) Rename file f1 as f2 (or move f1 into directory d) (or d1 into d2) Delete (remove) file f Create new directory d Remove directory d --must be empty pwd cd d cd .. Print working directory-- where you are Change to directory d (cd - go to last directory) go up one directory C-c C-s C-q exit Interrupt processes Stop screen scrolling Resume screen output Exit (the proper way to log out of Unix--may need to repeat 2x history !n Display recent commands Redo recent command n grep 'ptn' f diff f1 f2 head f tail f Outputs lines that match ptn Lists file differences Output beginning of f Output end of f g++ f.cpp -o f compile program f.cpp into executable f PICO EDITOR pico [f] C-g C-x C-o C-k C-u Open pico editor [on optional file f] Get help when you are in pico Exit ??? Save file cut text un cut text