Linux under Network View command SS

Source: Internet
Author: User

SS command

The SS command is used to display the socket information in the active state. Similar content can be displayed and netstat, and more detailed information can be displayed, and viewing is faster.

Format

SS [Options] [FILTER]

Options

-H: Displays help information;

-V: Displays the instruction version information;

-N: Do not parse the service name and display it digitally;

-A: Displays all sockets;

-L: Displays the socket in the listening state;

-O: Displays timer information;

-M: Shows memory usage of sockets;

-P: Displays process information using sockets;

-I: Displays the internal TCP information;

-4: Only IPv4 sockets are displayed;

-6: Only IPv6 sockets are displayed;

-T: Only TCP sockets are displayed;

-u: Displays only UDP sockets;

-D: Show only DCCP sockets;

-W: Show only raw sockets;

-x: Only UNIX domain sockets are displayed.

Example
[[Email protected] ~] #ss-L # View native Open ports State      RECV-q send-q                    Local address:port                        Peer Address: Port   LISTEN     0                                         *:55397                                  *:*       LISTEN      0                                        :: Sunrpc                                :::*
[[Email protected] ~] #ss-at # Show all TCP sockets
[[Email protected] ~] #ss-au # Show all UDP sockets
[[Email protected] ~] #ss-o State established # displays all connected socket connections Recv-Q send-Q Local address:port Peer address:port0 148 192.168.55.55:SSH 192.168.55.1:13504Timer: (On,247ms,0)0 0 172.16.253.55:SSH 172.16.253.209:5530Timer: (Keepalive,26min,0)
[[Email protected] ~] #ss-S # displays all current socket details Total:824(Kernel830) TCP: -(estab3, closed0, Orphaned0, SYNRECV0, timewait0/0), ports8Transport Total IP IPv6*830-         -RAW0         0         0UDPTen        7         3TCP -        Ten        7INET -         -        TenFRAG0         0         0        

Linux under Network View command SS

Related Article

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.