Difference between revisions of "Ss"

From wikieduonline
Jump to navigation Jump to search
Line 7: Line 7:
 
Display all [[TCP]] sockets including process:
 
Display all [[TCP]] sockets including process:
 
* <code>ss -tap</code>
 
* <code>ss -tap</code>
 +
Display established [[TCP]] sockets including process:
 +
* <code>ss -tp</code>
 
Display established [[TCP]] sockets:
 
Display established [[TCP]] sockets:
 
* <code>ss -t</code>
 
* <code>ss -t</code>

Revision as of 14:45, 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 -tap

Display established TCP sockets including process:

  • ss -tp

Display established TCP sockets:

  • ss -t

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: