ls displays the file or directory - L lists the file details L (List) - A list of all files and directories in the current directory, including hidden A (All) mkdir to create a directory - the p-create the directory, if not the parent directory, create the p-(parent) cd Change directory touch creates an empty file vim / vi create / edit the file insert edit and: q : q ! forced to quit : wq to save and exit esc exit the editor echo to create a file with the contents of the cat view the file contents tar compression packages - c build archive - the X-extracting files - z gzip compressed files - J bzip2 compressed files - v displays all process - f file name using cp copy - r recursive copy directories mv move or rename rm delete files - r recursive delete, delete files and subdirectories - f force delete chmod change file or directory permissions kill kill processes find in the file system Search for a file wc statistics the number of rows of text, words, characters grep search for a string in a text file rmdir to delete empty directories tree structure display the directory tree, you need to install tree package pwd displays the current directory ln creates a link file system time date display More / less paging file contents display text head / tail display the file header, the end of the content sudo to execute commands other identity, the identity of the default root change the current user to another user su stat displays detailed information of the specified file, than ls in more detail who show online login user whoami show current user hostname show hostname uname display system information top dynamically displays the current resource-consuming up to process information ps display instantaneous process status - E show all processes - f full format du view directory size - S show only the directory size of aggregate - H shows directory with the size df view disk size df - H with displays disk information free memory See case - B units (bytes) - K units ( KB) - m units (MB) - G unit (GB) the ifconfig view network where the ping test network connectivity netstat displays network status information - Ano see if a port is in use - tlnp according to the port to find PID man to see in Linux instructions to help clear the screen clears kill kill processes reboot reboot the system the shutdown - r restart shutdown - H shutdown not restart now immediately shut down
Document Transfer: https: //www.cnblogs.com/javastack/p/8796178.html