Windows netstat equivalent in Linux
Displays active network connections, listening ports, and socket statistics.
netstat
ss -tuln
ss -tuln
ss -tuln
Overview
What this command does
On Windows, "netstat" is used to show network connections. On Linux, the closest practical mapping shown here is "ss -tuln". Displays active network connections, listening ports, and socket statistics. This reference is grouped under Networking.
Windows → Linux context
What changes when you use this on Linux?
Equivalent task, different tool
Windows netstat maps to ss -tuln for this task. Treat this as a workflow mapping rather than a character-for-character syntax translation.
Portable across the compared distros
The Debian/Ubuntu, Fedora and Arch rows use the same command in this mapping. Package availability or defaults can still vary, so check the installed tool version when an option behaves differently.
For the broader concept behind this mapping, read Linux networking for Windows users.
Practical tasks
Common use cases
Show network connections
Displays active network connections, listening ports, and socket statistics.
ss -t
Show TCP connections
ss -u
Show UDP connections
ss -l
Show listening sockets only
Ready to run
Copyable Linux commands
Review paths, device names, package names and permissions before running any command.
ss -tuln
ss -tulnp
ss -tp
Walkthrough
Examples with explanations
# Windows: netstat -an
ss -tuln # show all listening TCP/UDP ports
ss -tulnp # include the process name
# Windows: netstat -b (show processes)
ss -tp # TCP connections with process info
Reference
Common options and variations
| Command or option | Use |
|---|---|
ss -t | Show TCP connections |
ss -u | Show UDP connections |
ss -l | Show listening sockets only |
ss -n | Show numbers (no DNS lookups) |
ss -p | Show which process owns each socket |
ss -tuln | The most common combination |
Distro differences
Debian/Ubuntu vs Fedora vs Arch
Debian/Ubuntu, Fedora and Arch all use "ss -tuln" for this mapping. The command syntax shown here is portable across the three rows, although installed versions and system defaults can still vary.
| Distribution | Package manager / base | Equivalent command | Difference to notice |
|---|---|---|---|
| Debian/Ubuntu | same command | ss -tuln |
Same command on this distribution. |
| Fedora | same command | ss -tuln |
Same command on this distribution. |
| Arch | same command | ss -tuln |
Same command on this distribution. |
Keep learning