1. mkdir set up directory $ mkdir TestDir
2, LS list content under the directory Ls-al TestDir
3. CD replacement current working directory CD TestDir
4. PWD Displays the current working directory PWD
5. CP copy file or directory CP test.txt Test.bak
6. MV Rename (move) file mv TestDir Testdirbak
7. RM Delete files or directories RM-RF TestDir
8. Cat
displaying file contents cat filename
Create a new file cat > Fllename end with EOF or stop
Connecting multiple files output to a file cat file1 file2 >file3
9. more/less View File contents more/less filename more: Press space to continue less: up and down Arrows press Q to end the view
10, Head/tail View the file head/tail content TAIL-F log monitoring logs information;
11. PS View process Ps-aef|grep ' name '
12. Kill Process Kill-9 Number
13. Jobs View the serial number of the commands being executed in the background jobs
14, BG/FG designated Jobid in the background/front-end operation Crtr+z BG Jobid; FG Jobid
15, DU/DF View the disk space consumption of the file system DU/DF
Common Linux Commands