News for hackers. Stuff that matters.
Re:Linux debugging tools you'll love by tangue on Wednesday September 07, 2016 @11:52AM (#12444393)
Ss has replaced netstat. (By the way each time you're typing netstat you're suppposed to get a message telling it's obsolete). ss is an improvment on performance and features, but unfortunately the ui isn't much improved compared to netstat ...
Re:Linux debugging tools you'll love by geofft on Wednesday September 07, 2016 @01:19PM (#12445231)
Nifty, `ss -i` seems useful. I think most of the rest of the info you can get with netstat, though (and there doesn't seem to be a way to resolve usernames, as `netstat -e` does).

Is there a way to make the output not justified to the width of my terminal? The extra whitespace makes it hard to see which rows match up, and also makes it annoying to paste into IM or email.

Re:Linux debugging tools you'll love by mVChr on Wednesday September 07, 2016 @03:30PM (#12446539)
> (and there doesn't seem to be a way to resolve usernames, as `netstat -e` does)

Challenge accepted:

  ss -e | grep uid | gawk 'match($0,/uid:([0-9]+)/,u) {printf "%s user:",$0;system("getent passwd "u[1]" | cut -d: -f1");}'
Not your point, I know, but it was fun.
Re:Linux debugging tools you'll love by wang_li on Thursday September 08, 2016 @10:41AM (#12453415)
You lose three points for using grep and gawk in the same pipeline. :P
Re:Linux debugging tools you'll love by mVChr on Thursday September 08, 2016 @12:34PM (#12454564)
Oops, the grep was just to filter the lines that actually have a uid while I worked on it, it's not needed or desired if you were to actually use this. You can remove that part. :P
Re:Linux debugging tools you'll love by lsc on Wednesday September 07, 2016 @07:27PM (#12448899)
I wish utilities would use more characters, Because it makes searching so much easier. You can always alias it to something else, but for example, it is way easier to search for ifconfig than it is to search for ip (for iproute)
Re:Linux debugging tools you'll love by victorhugo31337 on Thursday September 08, 2016 @12:39AM (#12450339)
AFAIK ss was not meant to be a complete replacement of netstat. The ss utility (part of iproute2) uses netlink to monitor sockets only. The netstat utility (part of net-tools) uses old school ioctls to do things like manage routing tables, multicast membership, interface stats...long story short, iproute2 replaces net-tools.
Re:Linux debugging tools you'll love by khedoros on Wednesday September 07, 2016 @05:40PM (#12448019)
> By the way each time you're typing netstat you're suppposed to get a message telling it's obsolete

Starting about when? Most of the distros I use are a couple years old, and I don't see "ss" under the package managers.

Re:Linux debugging tools you'll love by t3f on Wednesday September 07, 2016 @10:10PM (#12449709)
It's from iproute2 - sockstat "ss" Circa ~ 2001, although it's been through a few maintainers since.

https://github.com/shemminger/iproute2/commits/master/misc/s...

Re:Linux debugging tools you'll love by marcosdumay on Wednesday September 07, 2016 @08:22PM (#12449211)
It's installed by default at my Debian stable computer. Yet, there is not package for it, must be at the basic tools.
Re:Linux debugging tools you'll love by zipperhead on Wednesday September 07, 2016 @12:19PM (#12444622)
I like ss, except I can never seem to remember the name. The two letters don't seem to have any relation to the functionality.

The man page refers to it as "ss - another utility to investigate sockets". That doesn't seem to help.

Re:Linux debugging tools you'll love by tangue on Wednesday September 07, 2016 @12:34PM (#12444755)
For different (historical ww2 reasons) I don't like the name and I wish ss had a more meaningful name ...
Re:Linux debugging tools you'll love by txutxu on Wednesday September 07, 2016 @12:41PM (#12444826)
ss - Sockets Stat (?)
Re:Linux debugging tools you'll love by tangue on Wednesday September 07, 2016 @12:50PM (#12444937)
In Europe ( at least in France ) ss means Nazis' Waffen SS. Something like sostat would have been a better choice imho.
Re:Linux debugging tools you'll love by txutxu on Wednesday September 07, 2016 @01:05PM (#12445103)
Sorry, I'm from Europe too, and I did feel in my skin, the Nazi ideology that remains, when working in Holland/The Netherlands for 2 years. If I read "ss" in a computer/programing context, I don't think about Nazis. The same that I love rainbows, and I'm not gay.

People takes symbols as a totalitarian thing. We are free to skip their imposition and use things as we like. We are still free to do it. Really. We can appreciate the beauty of a rainbow after a rain/sun combination, and not impose our sexual unsolicited demonstrations to anyone because of it. It's just a nature thingy.

We can say "ss" for a program that print sockets stats, and skip remembering Nazis. It's opensource, any skin tone can use, modify and redistribute, ss. We can do it, or, we can stick to bad memories, and name things just and only, as Israeli stuff.

I didn't think about it, and probably the person that did name the program, neither. Anyway, I see your point, the name can bring negative sentiments to some persons which see the daemon in a piece of source code or in an acronym in unrelated context.

Re:Linux debugging tools you'll love by tangue on Wednesday September 07, 2016 @01:18PM (#12445226)
Millenials in my team think like you so I think It' s not that bad. And for some time I was a a hudge advocate for a js testing library named "testacular" which is far worse in retrospective ... " What's in a name" ...
Re:Linux debugging tools you'll love by kleiba on Wednesday September 07, 2016 @04:38PM (#12447422)
Nope, sorry. I'm with the (great grand) parent(s) on this one: my first association when reading about 'ss' in this thread was "Schutzstaffel" as well. I think I would think about it every time I'd have to type it into a shell, but luckily, I don't do much network related development.
Re:Linux debugging tools you'll love by signa11 on Wednesday September 07, 2016 @12:09PM (#12444541)
> Ss has replaced netstat.

what about non-tcp/non-udp sockets e.g. sctp ? ss doesn't seem to support that (but i might be mistaken)

Re:Linux debugging tools you'll love by tangue on Wednesday September 07, 2016 @12:52PM (#12444958)
You're right but as I'm not using it I don't know what's the situation about that.
Re:Linux debugging tools you'll love by helper on Wednesday September 07, 2016 @03:42PM (#12446724)
How do you get `netstat -s` information out of ss?