pwd View the current directory
/root slash equivalent to root directory
CD Change directory switch catalog CD/--means switch to the root directory
ls View the files in the current directory
ls-l listing the current directory detail file information
ls-a Show hidden files
ls-lh User-friendly Display file list H (human)
CD.. Go back to the top level directory
vim. Test creates a hidden file
Edit File
Vim file name
Press I to enter insert mode
After you finish writing the file,
Press ESC, then press shift+: Key, enter Wq, then hit enter, the file is saved and exited
Cat File name to view the contents of the document (to show you all the contents of the whole file)
More File name One-page view of the contents of a document
mkdir file creation Directory
Mkdir-p cn/hunan/changsha/yueluqu/t
Represents creating 4 directories-P for recursive creation, one layer at a level to create a directory
Tree Directory Name displays the data structure of the directory
Tree displays the data structure of the current directory
MV FileName Directory name/ move file to xx directory
. Represents the current directory
.. Represents a top-level directory
RM file name Delete file
Linux command line