Just an idea. As -w option for sockstat(1) provides wider field size for displaying addresses it can also be used to increase the width of COMMAND column as process names are often cut. % sockstat -l -4 USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS unbound local-unbo 26332 5 udp4 127.0.0.1:53 *:* unbound local-unbo 26332 6 tcp4 127.0.0.1:53 *:* root wpa_suppli 42380 4 udp4 *:* *:* Regards.
Should I close it? No need to improve that?
Created attachment 238523 [details] Without and with option -w (wider field size for displaying addresses) sockstat -lL -4 sockstat -lLw -4 Output from the latter could be tidier.
(In reply to Graham Perrin from comment #2) > Output from the latter could be tidier. Output from _both_ commands could be tidier (columns in disarray) …