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