Dir View your current location
CD/Switch Directory
Cd.. Switch to the previous level directory
LS lists the file names under the directory
Ls-l listing the files in the directory for more information
LS-LH list the user-friendly information of the files in the directory (can be displayed size)
Ls-a list hidden files in directory
Vim. Test creates a hidden file (. Test)
Vim filename To create a file, and then press I key into the insert mode, enter the content after pressing ESC to exit the Insert mode, then press shift+: Key, then enter Wq, press ENTER, save and exit
VI file name function similar to VIM
Cat file name read out the full contents of the file
More FileName page Read the contents of the file, press ENTER can be one line down, press the space can page by page down
mkdir Directory name creation directory
Mkdir-p Directory Name/directory name/directory name/recursive create multi-level directory
MV FileName Directory Name/move file to the specified directory
Tree directory name Trees view the files and directories under the specified directory, or the tree structure of the current directory if the directory name is not written
CP file name Directory name copy files
MV FileName Directory name to move files, delete files to the Recycle Bin can be MV to the/tmp/directory
RM file name Delete files, completely deleted, unrecoverable, more dangerous, not recommended for excessive use
> File name empty contents, free space
Touch file name
Df-h view Current disk size usage, space usage and remaining in the current directory
Ll-h viewing file list information under directory
PS-EF|GREP DD View process run for DD operation
Kill process Number End process
Kill-9 process number forced end process
RmDir Create an empty file
Tar zcvf xxx.tar.gz./* Package All files in the current directory or specify which files to package
Du-h to view the size of the current folder, or to view the specified file size
Free-m view the current memory and usage of the server in M
IP A view the current IP address of the server
Chown user name. User group name Directory name/modify the user group to which a directory belongs
RWX r-x R-x