One: File directory Operations Command(i) Create a fileVim file name Press I enter insert mode after writing the file, press ESC, and then enter: Wq The file is saved after hitting enter
/ And
. The difference
/ Indicates that the root directory starts
. Indicates the current directory starts(ii) commonly used commands1. PWD view current position 2, CDfolder name , &NB Sp access to the catalogue 3, ls & nbsp , &NB SP; view files in current directory 4, ls-l &NB Sp listing the current catalog file details 5, LS-LH&NB Sp , &NB Sp ls user-friendly Display file list 6, a , &N Bsp Show hidden files 7, CD. , &NB Sp go back to the previous category CD. /.. /.. /.. /.. , &NB Sp This method can return multi-layer 8, cat file nameView file Contents 9, more
file nameSlowly view the contents of the file 10, mkdirfolder nameCreate folder 11, MVfile namefolder nameMove files to a folder 12, Mkdir-pxxx/xxxx/xxxx/xxxRecursively creating folders 13, treexxTree structure showing xx directory 14, CP file name folder name copy files to folder 15, find/-name "file name"Find the file fine from the root directory. -Name "file name" from the current directory (can be combined with * universal notation) 16, R Mfile namePermanently delete the file
(less dangerous)
(generally create a folder specifically to act as the Recycle Bin, move the files you want to delete to the folder)ask for help1, man xx2. Help XX find the man first, then find help.
First time contact with Linux