...
netstat # Display all the active network connections, routing tables, and interface statistics on your Linux system.
Warning |
---|
This helps in understanding what applications or daemons are running and potentially causing issues, crucial for troubleshooting port conflicts or unauthorized services running on unexpected ports. Useful in verifying firewall rules and monitoring for unauthorized services or suspicious network activity |
Code Block | ||||
---|---|---|---|---|
| ||||
netstat -tulpn #shows all programs listening for connections, along with their details like ports and IDs, using numbers instead of names. Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN - tcp 0 0 127.0.0.1:46565 0.0.0.0:* LISTEN 1616/eidLvUIServer tcp6 0 0 :::45623 :::* LISTEN 71127/AppRun.wrappe tcp6 0 0 :::5061 :::* LISTEN 71127/AppRun.wrappe tcp6 0 0 ::1:631 :::* LISTEN - tcp6 0 0 :::1716 :::* LISTEN 1614/kdeconnectd udp 0 0 0.0.0.0:52881 0.0.0.0:* - |
...