Netstat: Difference between revisions

create page
 
m pipe links
 
Line 1: Line 1:
'''<code>[[wp:netstat]]</code>''' was/is a very useful Linux command line tool for getting statistics about network interfaces. Or, in common terms: find out about your network. It is now obsolete (same with <code>ifconfig</code>) and the main replacement is '''<code>[[wp:ss]]</code>'''. You could use '''<code>[[wp:lsof]]</code>''' to list open files, including TCP sockets (e.g. <code>lsof -i -n -P</code> to list IP sockets, no DNS, Port numbers not names) but lsof is not always installed by default so it may not be everywhere you work. ss is part of the [https://packages.debian.org/sid/amd64/iproute2/filelist '''iproute2''' tools in Debian] for example. Iproute2 is the successor to the archaic 'net-tools' utilities.
'''<code>[[wp:netstat|netstat]]</code>''' was/is a very useful Linux command line tool for getting statistics about network interfaces. Or, in common terms: find out about your network. It is now obsolete (same with <code>ifconfig</code>) and the main replacement is '''<code>[[wp:ss|ss]]</code>'''. You could use '''<code>[[wp:lsof|lsof]]</code>''' to list open files, including TCP sockets (e.g. <code>lsof -i -n -P</code> to list IP sockets, no DNS, Port numbers not names) but lsof is not always installed by default so it may not be everywhere you work. ss is part of the [https://packages.debian.org/sid/amd64/iproute2/filelist '''iproute2''' tools in Debian] for example. Iproute2 is the successor to the archaic 'net-tools' utilities.


== Converting Netstat commands to SS ==
== Converting Netstat commands to SS ==