netstat -tulpn
Результат:
[root@yourserver~]# netstat -tulpn
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 872/sshd: /usr/sbin
tcp6 0 0 :::9090 :::* LISTEN 1/systemd
tcp6 0 0 :::22 :::* LISTEN 872/sshd: /usr/sbin
udp 0 0 127.0.0.1:323 0.0.0.0:* 823/chronyd
udp6 0 0 ::1:323 :::* 823/chronyd
Для установки netstat
yum install net-tools -y