Build directory: mkdir
mkdir-p [directory Name]
-P Recursive creation
Command English original: Make directories
directory where you switch: CD
CD [catalogue]
CD ~ Enter the current user's home directory
Cd
CD-Go to last directory
Cd.. Go to the top level directory
Relative path: Search by reference to the current directory
such as: CD. /user/local/src
Absolute path: Specified from the root, recursive lookup at the first level. In any directory, access to the specified location
such as: cd/etc
Command completion: ' Tab ' key, can be complete at a time, two can list the relevant commands used ...
Delete Empty directory rmdir (only empty directory)
Delete files or directories: RM
RM-RF [file or directory]
Command English original meaning: remove
Choose:
-R Delete Directory
-F Mandatory
Copy command: CP
CP [SELECT] [Original file or directory] [target directory]
Command English Original: copy
Choose:
-R Copy Directory
-P Joint File attribute copy
-D If the source file is a linked file, copy the link property
-a equivalent to-PDR (common)
Cut or rename command: MV
MV [original file or directory] [target directory]
Command English Intent: move
Link command: LN
Ln-s [Original document] [target document]
Command English original meaning: link
Command English original meaning: link
Function Description: Generate link file
Select:-S to create a soft link
Common operations for Linux files