Linux-ss commands

Source: Internet
Author: User
Linux-ss command details ss-l show all locally opened ports ss-pl show each process specific opened socketss-t-a show all tcpsocketss-u-a show all UDPSocektss -ostateestablished & amp; #39; (dport :... linux-ss command details ss-l show all locally opened ports ss-pl show each process specific opened socket ss-t-a show all tcp socket ss-u-a display all UDP Socekt ss-o state established '(dport =: smtp or sport =: smtp) 'display all established SMTP connections ss-o state established' (dport =: http or sport =: http) 'display all established HTTP connections ss-x src/tmp /. X11-unix/* find out all processes that connect to X server ss-s list current socket details: Explanation: netstat is traversing each PID directory under/proc, ss directly reads the statistics under/proc/net. Therefore, the resource consumption and time consumed by ss execution are much less than that of netstat. Usage: ss [OPTIONS] ss [OPTIONS] [FILTER]-h, -- help this message-V, -- version output version information-n, -- numeric don't resolve service names-r, -- resolve host names-a, -- all display all sockets-l, -- listening display listening sockets-o, -- options show timer information-e, -- extended show detailed socket information-m, -- memory show socket memory usage-p, -- processes show process using socket-I, -- info show internal TCP information-s, -- summary show socket usage summary-4, -- ipv4 display only IP version 4 sockets-6, -- ipv6 display only IP version 6 sockets-0, -- packet display PACKET sockets-t, -- tcp display only TCP sockets-u, -- udp display only UDP sockets-d, -- dccp display only DCCP sockets-w, -- raw display only RAW sockets-x, -- unix display only Unix domain sockets-f, -- family = FAMILY display sockets of type FAMILY-, -- query = QUERY :={ all | inet | tcp | udp | raw | unix | packet | netlink} [, QUERY]-F, -- filter = FILE read filter information from file filter: = [state TCP-STATE] [EXPRESSION]

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.