by hobr · 10y ago · 0 comments
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.
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.Starting about when? Most of the distros I use are a couple years old, and I don't see "ss" under the package managers.
https://github.com/shemminger/iproute2/commits/master/misc/s...
The man page refers to it as "ss - another utility to investigate sockets". That doesn't seem to help.
what about non-tcp/non-udp sockets e.g. sctp ? ss doesn't seem to support that (but i might be mistaken)