First, directory operations
1.mkdir-p A/B/C/D recursive creation of directories
2.PWD (Print working directory) displays the current directory path
3.rmdir directory name, delete empty directory
4.RM-RF file name, deleting directory
-R Delete Directory
-F Force Delete
5.CP-RP Directory destination directory, copy directory
-R Copy Directory
-P Reserved Properties
Ii. Processing of documents
1.touch filename, creating an empty file
2.cat filename, displaying file contents
-N Display Line number
3.tac Inverted Display file contents
4.more and less
Use these two commands to view content when there is too much content in the file, less to page up and use/XX to search
5.head-n 7 file name to view the first 7 lines of content
6.tail-f filename, dynamically view the last line of the file
Third, the link
ln Original File Destination file
Parameter:-s to generate soft links
Soft Links: Similar shortcuts
Hard link: The same information as the original file (compared to the cp-p file it can be updated synchronously, I node is the same, cannot boast partition creation, cannot set hard link to the directory)
When the original file is deleted, the soft link fails and the hard link is not affected.
Example:
Ln-s/etc/issue/tmp/issue.soft
Ln/etc/issue/tmp/issue.hard
Linux Basic Learning-catalog files and links