![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
UNIX Command Summary | ||||||||||||||
Home | SCJP | SCWCD | SCEA | SCSA | ||||||||||||||
Environment Control Command Description cd d Change to dir d mkdir d Create new dir d rmdir d Remove dir d mv f1 [f2...] d Move file f to dir d mv d1 d2 Rename dir d1 as d2 passwd Change password alias name1 name2 Create cmd alias (csh/tcsh) alias name1="name2"Create cmd alias (ksh/bash) unalias name1[na2...] Remove cmd alias na ssh nd Login securely to remote node exit End terminal session sentenv name v Set env var to value v (csh/tcsh) export name="v" Set env var to value v (ksh/bash) |
Process Control Command Description CTRL/c * Interrupt processes CTRL/s * Stop screen scrolling CTRL/q * Resume screen output sleep n Sleep for n seconds jobs Print list of jobs kill % Kill job n ps Print process status stats kill -9 n Remove process n CTRL/z * Suspend current process stop %n Suspend background job n cmmd& Run cmmd in background bg [%n] Resume background job n fg [%n] Resume foreground job n exit Exit from shell |
|||||||||||||
Environment Status Command Description ls [d] [f...] List files in directory ls -1 [f...] List files in detail alias [name] Display command aliases 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 chfn Change finger information pwd Print working directory history Display recent commands ! n Submit recent command n |
||||||||||||||
File Manipulation Command Description vi [f] Vi fullscreen editor emacs [f] Emacs fullscreen editor ed [f] Text 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 |
||||||||||||||
![]() |