Linux Basic Command SS

Source: Internet
Author: User

Write in front, the public message function has been open for some time, if you need to exchange please try to choose the way to leave a message, because usually I also want to working, and recently intends to learn through video plus text way to study, to enjoy the look.

The SS is the abbreviation for the socket statistics. As the name implies, the SS command can be used to get socket statistics, which can display and netstat similar content. But the advantage of the SS is that it can show more and more detailed information about TCP and connection status, and is faster and more efficient than netstat.

The World martial arts only fast not broken. The secret of the SS fast is that it leverages the TCP_DIAG in the TCP protocol stack. Tcp_diag is a module for analyzing statistics that gives you first-hand information in the Linux kernel, which ensures that the SS is fast and efficient. Of course, if you do not have tcp_diag,ss in your system, you can run normally, but the efficiency will become slightly slower. (but still faster than Netstat.) )

1. Command format:

SS [Parameter]

SS [Parameter] [filter]

3. Command parameters:

-H,--help help info

-N,--numeric does not resolve service name

-R,--resolve parse host name

-O,--options display timer information

-E,--extended display detailed socket (sockets) information

-P,--processes shows the process using the socket (socket)

-I,--info display TCP internal information

-S,--summary display socket (socket) Usage overview

-T,--tcp display only TCP sockets (sockets)

-U,--udp Show only UCP sockets (sockets)

-D,--DCCP Show only DCCP sockets (sockets)

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M02/83/7C/wKioL1d0lpWw9UIwAAKheRg9R7c620.png "title=" Qq20160630112249.png "alt=" Wkiol1d0lpww9uiwaakherg9r7c620.png "/>

4. Display all TCP ports and processes that use them

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M00/83/7D/wKiom1d0lqziMxiwAAEAJ6wCo1k648.png "title=" Qq20160630112458.png "alt=" Wkiom1d0lqzimxiwaaeaj6wco1k648.png "/>

Linux Basic Command SS

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.