mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
Previously netstat would print the whole line of an ip address or resolved hostname. If the hostname was longer than the address column length, it would push following columns into disaligned output. This sets the default behavior to truncate any IP address or symbolic hostname that is larger than the maximum address column size to provide cleaner output. In the event the user wishes to see the whole address name, they can then pass the wide option that will output as wide as necessary to print the whole name.
666 B
666 B
Name
netstat
Synopsis
$ netstat [--all] [--list] [--tcp] [--udp] [--numeric] [--program] [--wide]
Description
Display network connections
Options:
-a
,--all
: Display both listening and non-listening sockets-l
,--list
: Display only listening sockets-t
,--tcp
: Display only TCP network connections-u
,--udp
: Display only UDP network connections-n
,--numeric
: Display numerical addresses-p
,--program
: Show the PID and name of the program to which each socket belongs-W
,--wide
: Do not truncate IP addresses by printing out the whole symbolic host