Catalogue and documents
- Pwd
-P Returns the true path of the link
- Cd
CD-Return to the previous directory
CD switch to the current user's home directory
- Ls
-D displays information about the directory itself rather than the information in the directory
-C Displays the time when the file or directory attribute was last modified
-U shows when the file or directory was last accessed
-T to modify the time sort, by default sort by file name
- Mkdir
-P Create a multilevel directory
- Find
find[command options [path] [Expression options]Option:-empty find a blank file or directory
-group Find by group
-name Search by name
-iname Case insensitive
-mtime Modify Time Lookup
-size
-type f,d,b,c,l
-user
-exec executing commands on the found document
-A
-O
- Du view the capacity of a file or directory
-sh Show only Totals
View File Contents
- Cat
-B Displays line numbers, blank lines do not appear
-N Displays line numbers, including blank lines
- Tail
-F Dynamic display of file contents, CTRL + C exit
- Wc
-l display number of file lines
- grep
-i
-v
--color
- Echo
-N does not output line breaks
-E supports escape characters starting with backslashes, masking the original meaning of the character behind the backslash
If you use the-e option, you can recognize the special meaning of the following sequence of characters
\ \ Backslash
\a Alarm
\b Backspace key
\c does not generate extra output
\f Input form format, keep cursor position after line break
\ nthe line break
\ t generates a horizontal tab
\v Creating a vertical tab
Linux Basic Commands Personal note essence