Show server processes with netstat

netstat is a powerful tool to troubleshoot issues with network connections, routing tables, interface statistics etc.It can be also used to show currently running processes(server) with PID detail.Below is the command with example.

netstat -plntu

Output:
Active Internet connections (only servers)
Proto Recv-Q   Send-Q   Local Address    Foreign Address State      PID/Program
tcp   0        0        0.0.0.0:22       0.0.0.0:*       LISTEN     543/sshd
tcp   0        0        127.0.0.1:631    0.0.0.0:*       LISTEN     961/cupsd
tcp   0        0        0.0.0.0:37121    0.0.0.0:*       LISTEN     985/rpc.statd
tcp   0        0        0.0.0.0:389      0.0.0.0:*       LISTEN     1230/slapd
tcp   0        0        0.0.0.0:40011    0.0.0.0:*       LISTEN     -
tcp   0        0        0.0.0.0:111      0.0.0.0:*       LISTEN     947/rpcbind
tcp   0        0        0.0.0.0:80       0.0.0.0:*       LISTEN     1295/nginx
tcp6  0        0        :::49941         :::*            LISTEN     985/rpc.statd
tcp6  0        0        :::22            :::*            LISTEN     543/sshd