Linux commands
1, Shutdown shutdown-h now
2,init 0 shutting down the system
3,shutdown-h Hours:minutes & Shutdown system at scheduled times
4,shutdown-c Cancel the system at a predetermined time
5,shutdown-r now restart
6,reboot restart
7,logout logoff
8,cd/home Enter '/home ' directory
9,CD. Return to the top level directory
10,CD. /.. Return to the top level two directory
11,CD into the personal home directory
12,cd ' User1 into the personal home directory
13,CD-Return to the last directory
14,pwd Show Work Path
15,ls viewing files in a directory
Ls-f view the files in the directory
17,LS-L displays detailed information about files and directories.
18,mkdir Dir1 Create a directory called Dir1
19,mkdir dir1 DIR2 Create two directories at a time
20,rm-f file1 Delete a file called File1
21,rmdir Dir1 Delete a directory called Dir1
22,RM-RF dir1 DIR2 Delete two directories and their contents at the same time
23,MV Dir1 new_dir Renaming/Moving a directory
24,CP file1 file2 Copy a file
25,CP dir/* Copy all files from a directory to the current working directory
26,cp-a/tmp/dir1 copy a directory to the current working directory
27,cp-a dir1 dir2 Copy a directory
28,ln-s file1 lnk1 Create a soft link to a file or directory
29,ln file1 Lnk1 creates a physical link to a file or directory.
30,find/-name File1 Enter the root file system to search for files and directories from '/'
31,find/-user User1 search for files and directories belonging to user ' User1 '
Linux Common Commands Daquan 3