1.1 mkdir Command
Make directory abbreviation, which indicates the creation of a directory
Common parameter-p indicates cascading creation
For example: Mkdir-p bjsxt/01/02
1.2 ls command
is the list's abbreviation, which indicates the list file
1.3 CD command
The abbreviation for change directory, which indicates the switch directory
The path after the CD command can be a relative path, or it can be an absolute path
1.4 MV Command
Move word abbreviation, which indicates moving or renaming a file or directory
1.5 pwd command
Print working directory abbreviation, indicating the current path is displayed
1.6 Touch Command
Used to create a file touch 1.txt
1.7 RM Command
Remove is written to delete the file or directory
Delete file rm + file name
Delete directory RM + directory name + parameters (-RF)
Where RF represents cascading forced removal of RM-RF AAA
1.8 VI Editor
VI is a text editor with very powerful features
VI + file name
After opening the file, press "a" or "I" to enter edit mode
Esc key to exit edit mode
In non-edit mode "Shift" + ":", enter Wq save and exit
1.9 Cat Command:
Used to view the contents of a file
1.10 Tar command
For extracting or compressing files
Unzip the tar zxvf
Compress tar ZCVF
1.11 PS-EF View Process
Example: View Tomcat's Process Ps-ef | grep Tomcat
View Nginx Process Ps-ef | grep nginx
grep is the keyword that filters the folder names of Tomcat and Nginx for the installation path
Kill process: Kill-9 123123 ()
1.12 Firewall configuration
Vi/etc/sysconfig/iptables
1.2 Firewall configuration
Vi/etc/sysconfig/iptables
Linux Common commands