1. LS view content in the directory
-A View hidden files
-L Display File details
-D Display Directory properties
-H humanized Display file size
-I display ID number
2. Directory Operations
Create directory mkdir [-p] (recursive) Dir1
Open Directory CD [{CD: Return to previous level},{CD-return to previous directory},{CD ~ Home Directory}]
3. Delete files or directories
RM [{rm-r Delete directory},{rm-rf without prompting}]
4. Copy and cut
CP [{cp-r copy directory}] case cp-r zh test copy the ZH directory under the current directory to the test directory
MV Cut and copy (can also change the file name) MV Erp.sql erp.txt The Erp.sql file in the current directory to Erp.txt
5. Common shortcut keys
Ctrl+l Clear Screen
6. Soft and Hard connection
Have the same I node and storage block, can be regarded as the same file, can only be identified through the I node, not kua partition, not for the directory use
is equivalent to copying a file, but these two files are the same address, modify a file. Two files are modified at the same time.
Soft Connect: Equivalent to creating shortcuts in Windows (Note: The destination file in a soft connection must use an absolute path)
Simple character commands in Linux