I. Catalogue
- pwd display of course directory
- LS Displays the file (clip) in the current directory
- ll or ls-l detailed display of the file (clip) information in the current directory
- CD.. Return to the top level directory
CD/ return root directory
CD- returns the last directory
- CD ~ Enter the current user directory
- mkdir Creating a directory
- MV Move file (clip)/rename
Format: MV [parameter] [source file/directory] [destination file/directory]
Parameter:-F force coercion, if the target file already exists, does not ask to overwrite directly
- I. Interactive Interaction, the target file already exists, will ask whether to overwrite
Example 1: Moving test-1 to Lengjf-blog
Example 2: Move test-1 to test and rename to test-01
Format: RM [parameters] [File/directory]
Parameter:-R Delete Directory
-F will be prompted when deleting
RM-RF is a very dangerous command to use carefully.
Common Linux commands at work