Basic Introduction to UNIX http://www.seas.gwu.edu/~csci51/intro-unix.txt ------------------------------------------------------------------------ COMMAND COMMENT EXAMPLES ------------------------------------------------------------------------------ logon userId, password ls list contents of directory ls -l list contents giving sizes and permissions ls -l *.exe list all files with .exe file type mkdir make directory mkdir d1 cd change directory ~ home directory cd ~ .. go up one level cd .. pwd in which directory am i ? -------------------------------------------------------------------------------- man on-line command help man rm space bar page forward q quit man man -k on-line topic help man -k remove cp copy cp f1 f2 cp f1 dir1 mv move (rename) mv f1 f2 mv f1 dir1 cat file1 >> file2 append file1 to file2 less display contents of file less file1 space bar page forward b page backward q quit less rm delete file rm file1 rm *.exe delete all .exe files in directory rmdir delete directory rmdir d1 lp filename printing a file lp results lpq -Pthlj Sun server (felix) print queue status lprm -Pthlj job# remove job number xxx from queue elm electronic mail elm userid