MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
June
Sun Mon Tue Wed Thu Fri Sat
13
         
2025
Months
Jun
Jul Aug Sep
Oct Nov Dec


Fri, Jun 13, 2025 7:54 pm

Determining the process listening on a particular port on a Linux system with ss

To determine what process is listening on a particular TCP port on a Linux system, you can use the ss command. On a CentOS Linux system, the command can be found in the /sbin/ss directory. The utility is part of the iproute, or iproute2 package.

# which ss
/sbin/ss
# rpm -qf /sbin/ss
iproute-3.10.0-21.el7.x86_64
#

To see help information on the utility, you can use the command ss --help.

# ss --help
Usage: ss [ OPTIONS ]
       ss [ OPTIONS ] [ FILTER ]
   -h, --help           this message
   -V, --version        output version information
   -n, --numeric        don't resolve service names
   -r, --resolve       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
   -b, --bpf           show bpf filter socket information

   -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

   -A, --query=QUERY, --socket=QUERY
       QUERY := {all|inet|tcp|udp|raw|unix|packet|netlink}[,QUERY]

   -D, --diag=FILE     Dump raw information about TCP sockets to FILE
   -F, --filter=FILE   read filter information from FILE
       FILTER := [ state TCP-STATE ] [ EXPRESSION ]
#

Or you can consult the manual page for ss using the command man ss.

[ More Info ]

[/os/unix/linux/network] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo