#待用
Ps-ef | grep Tomcat -ef | grep java -ef | grep xx
kill-9 Process Number (Can be obtained by the above command)
Ps-aux
Tar zxvf file path
Unzip the zip war unzip file path
View file cat file path (shown from the first line)
TAC file path (shown from the last line)
Head 500 file path (view top 500 lines)
Tail 500 file path (view after 500 lines)
Tail-f file path (real-time view of the latest contents of the file)
Page Show archive content more file path (blank space Next turn a page enter the next row)
Less file path (with more type but can page up) modify file vim file path Delete file rm file path Copy file cp file path
Empty file contents echo "" > File path
view the file containing the specified contents of the line grep ' content ' file path rename mv original file path new directory mkdir directory path copy directory CP - RF directory path Delete directory rm -RF directory path
Enter the password of the remote user after entering the carriage
iptables Start command:service iptables start restart command:service iptables restart shutdown instruction: Service iptables Stop modify iptables:/etc/sysconfig/iptables
Grab Package Command:tcpdump -S 0 TCP port 8080-w package name. Cap
nohup execute Commands & (& not limited)
Example: nohup jar java-dname= Process name-jar-xms512m-xmx512m file name. Jar &
Netstat-n | awk '/^tcp/{++state[$NF]} END {for (key in) print key, "T", State[key]} '
Description : Last_ack 5 (number of requests waiting to be processed)
SYN_RECV 30
Established 1597 (normal data transfer status)
Fin_wait1 51
Fin_wait2 504
Time_wait 1057 (number of requests processed, waiting for timeout to end)
Linux Common Command collation