Difference between revisions of "Ss"

From wikieduonline
Jump to navigation Jump to search
(→‎Usage Examples: == Activities == * Review StackExchange questions about <code>ss</code>: https://unix.stackexchange.com/questions/tagged/ss?tab=Votes)
(→‎Usage Examples: === Advanced === * <code>ss -iepn '( sport = :80 )'</code><ref>https://unix.stackexchange.com/questions/542712/detailed-output-of-ss-command</ref>)
Line 3: Line 3:
  
 
== Usage Examples ==
 
== Usage Examples ==
 +
 +
=== Basic ===
 
Display all [[TCP]] sockets including process:
 
Display all [[TCP]] sockets including process:
 
* <code>ss -ta</code>
 
* <code>ss -ta</code>
Line 12: Line 14:
 
* <code>ss -taz</code>
 
* <code>ss -taz</code>
  
 +
=== Advanced ===
 +
* <code>ss -iepn '( sport = :80 )'</code><ref>https://unix.stackexchange.com/questions/542712/detailed-output-of-ss-command</ref>
  
 
== Activities ==
 
== Activities ==

Revision as of 14:41, 8 December 2019

ss[1] Linux command included in the iproute2 package to display sockets information.


Usage Examples

Basic

Display all TCP sockets including process:

  • ss -ta

Display all TCP sockets:

  • ss -ta

Display all UDP sockets:

  • ss -ua

Display all TCP sockets with SELinux security contexts:

  • ss -taz

Advanced

  • ss -iepn '( sport = :80 )'[2]

Activities

See also

ip [link, route], ifconfig netstat ss lsof ping ethtool mii-tool arping nmcli(RHEL) route networkctl, netplan, tc

Advertising: