This is an old revision of the document!
ifconfig
ip link set eth2 down
getent services <port>
netstat -lnput
<code>[root@srv]# netstat -lnput Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.1:5941 0.0.0.0:* LISTEN 12642/teamviewerd tcp 0 0 192.168.122.1:53 0.0.0.0:* LISTEN 2154/dnsmasq tcp 0 0 172.16.0.2:53 0.0.0.0:* LISTEN 1344/named tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN 1344/named tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 28645/sshd tcp 0 0 127.0.0.1:5910 0.0.0.0:* LISTEN 21602/Xvnc tcp 0 0 127.0.0.1:3350 0.0.0.0:* LISTEN 1443/xrdp-sesman tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN 1247/cupsd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 26909/master tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN 1344/named tcp 0 0 0.0.0.0:3389 0.0.0.0:* LISTEN 1450/xrdp tcp 0 0 0.0.0.0:7070 0.0.0.0:* LISTEN 13330/anydesk tcp 0 0 127.0.0.1:27017 0.0.0.0:* LISTEN 1907/mongod tcp 0 0 127.0.0.1:27117 0.0.0.0:* LISTEN 25249/bin/mongod tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 817/rpcbind tcp6 0 0 :::22 :::* LISTEN 28645/sshd tcp6 0 0 ::1:5910 :::* LISTEN 21602/Xvnc tcp6 0 0 ::1:631 :::* LISTEN 1247/cupsd tcp6 0 0 ::1:25 :::* LISTEN 26909/master tcp6 0 0 ::1:953 :::* LISTEN 1344/named tcp6 0 0 :::8443 :::* LISTEN 25166/java tcp6 0 0 :::6789 :::* LISTEN 25166/java tcp6 0 0 :::8843 :::* LISTEN 25166/java tcp6 0 0 :::111 :::* LISTEN 817/rpcbind tcp6 0 0 :::8880 :::* LISTEN 25166/java tcp6 0 0 :::8080 :::* LISTEN 25166/java udp 0 0 0.0.0.0:50001 0.0.0.0:* 13330/anydesk udp 0 0 0.0.0.0:973 0.0.0.0:* 817/rpcbind udp 0 0 0.0.0.0:5353 0.0.0.0:* 776/avahi-daemon: r udp 0 0 0.0.0.0:34776 0.0.0.0:* 776/avahi-daemon: r udp 0 0 192.168.122.1:53 0.0.0.0:* 2154/dnsmasq </code