netstat
NetworkingDisplay network connections, routing tables, and interface statistics
Options & Flags
Available options for this command
-aShow all sockets
-tShow TCP connections
-uShow UDP connections
-lShow listening sockets
-nShow numerical addresses
Examples
Common usage examples
Show all listening TCP and UDP ports
netstat -tulnCheck if port 80 is in use
netstat -an | grep :80Notes
- Consider using 'ss' command as modern alternative
- Useful for troubleshooting network issues
Related Commands
You might also find these useful