Bug 251291 - sockstat(1) - use -w option to also make COMMAND column wider
Summary: sockstat(1) - use -w option to also make COMMAND column wider
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 12.2-RELEASE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-21 15:15 UTC by vermaden
Modified: 2020-11-21 15:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vermaden 2020-11-21 15:15:07 UTC
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.