[Haifux] Command-line tips meeting: A rough summary

Rami Rosen rosenrami at gmail.com
Sat Feb 2 22:24:08 MSK 2013


Hi,

Well, indeed ss is a good utility to investigate sockets; it can
do many things that netstat does.
However, there are some functionalities of netstat which are missing
in ss (and probably will not be added in future, due to the nature of
ss utility).

For example, netstat can show also interface statistics, multicast
memberships, masquerade connections and more.

For example, showing forwarded packets with netstat is done by:
netstat -s | grep   forwarded
    0 forwarded

Showing multicast addresses is done by:
netstat -g

IPv6/IPv4 Group Memberships
Interface       RefCnt Group
....
...


Regards,
Rami Rosen
http://ramirose.wix.com/ramirosen
	

On Mon, Jan 21, 2013 at 10:35 PM, Tzafrir Cohen <tzafrir at cohens.org.il> wrote:
> On Mon, Jan 21, 2013 at 10:09:19PM +0200, Eli Billauer wrote:
>
>> netstat -a -n -p
>
> Deprecated in recent years. Try 'ss' instead (similar switches. Slightly
> different and better defaults).
>
> --
> Tzafrir Cohen         | tzafrir at jabber.org | VIM is
> http://tzafrir.org.il |                    | a Mutt's
> tzafrir at cohens.org.il |                    |  best
> tzafrir at debian.org    |                    | friend
> _______________________________________________
> Haifux mailing list
> Haifux at haifux.org
> http://haifux.org/mailman/listinfo/haifux



More information about the Haifux mailing list