Command 1:ls
Original intent: List
Features: Displaying catalog files
Syntax: ls-a display all files, including hidden files
Ls-l Detailed information display
Ls-d View Directory Properties
Example: Ls-l/bin
Drwxr-xr-x 2 root 4096 13-01 01:23
File permissions Hard link number owner group file size created or last modified
Command 2:CD
Original intention: Changedirectory
Functions: Switching directories
Syntax: CD [directory]
Example: cd/switch to root directory
Cd.. Go back to the top level directory
Command 3:pwd
Original intention: Printworking directory
Features: Displays the current working directory
Syntax: pwd
Command 4:mkdir
Original intention: Makedirectory
Syntax: mkdir [Table of contents]
Function: Create a new directory
Command 5:touch
Original intention: Touch
Function: Create an empty file
Syntax: touch [filename]
Example: Touchnewfile
Command 6:CP
Original intention: Copy
Features: Copying Files or directories
Syntax: CP [source file or source directory] [destination directory]
Example: CP file1file2 Dir1
Copy files File1, file2 to directory Dir1 (you can copy multiple files at the same time, separated by spaces)
CP Dir1 DIR2
Copy all files and subdirectories under Dir1 to Dir2
Command 7:MV
Original intent: Move
Features: Moving files to rename files
Syntax: MV [source file or source directory] [destination directory]
Example: MV File1file2
Rename the file file1 to File3
MV File2 Dir2
Move file file2 to directory Dir2
Command 8:RM
Original intention: Remove
Features: Deleting catalogs
Syntax: RM [File]
rm–r [Directory]
Example: RM file1
Delete file File1
Rm–r Dir1
Delete directory Dir1