Command Description cd d Change to directory d mkdir d Create new directory d rmdir d Remove directory d mv f1 [f2...] d Move file f to directory d mv d1 d2 Rename directory d1 as d2 passwd Change password exit End terminal session
Command Description script [f] Save terminal session to f exit Stop saving terminal session man name Unix manual entry for name
Command Description ls [d] [f...] List files in directory ls -1 [f...] List files in detail printenv [name] Print environment values quota Display disk quota date Print date & time who List logged in users whoami Display current user finger [username] Output user information ping h Send a packet to host, h, to see if it is alive pwd Print working directory history Display recent commands ! n Submit recent command n
Command Description vi [f] Vi fullscreen editor wc f Line, word, & char count cat f List contents of file more f List file contents by screen cat f1 f2 >f3 Concatenates f1 & f2 into f3 chmod mode f Change protection mode of f cmp f1 f2 Compare two files cp f1 f2 Copy file f1 into f2 sort f Alphabetically sort f split [-n] f Split f into n-line pieces mv f1 f2 Rename file f1 as f2 rm f Delete (remove) file f grep 'ptn' f Outputs lines that match ptn diff f1 f2 Lists file differences head f Output beginning of f tail f Output end of f
d directory f filename h a remote host n number ptn pattern [] optional arg ... list