Linux Common Command collation

Source: Internet
Author: User

#待用

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.