Merge pull request #200 from takeoverjp/feature-man-catchup

Update man page with the latest help message.
This commit is contained in:
Arnout Engelen
2021-02-06 10:15:45 +01:00
committed by GitHub
2 changed files with 48 additions and 35 deletions

View File

@@ -6,71 +6,84 @@ nethogs \- Net top tool grouping bandwidth per process
.SH SYNOPSIS .SH SYNOPSIS
.ft B .ft B
.B nethogs .B nethogs
.RB [ "\-h" ]
.RB [ "\-V" ] .RB [ "\-V" ]
.RB [ "\-d" ] .RB [ "\-h" ]
.RB [ "\-v" ] .RB [ "\-b" ]
.RB [ "\-d seconds" ]
.RB [ "\-v mode" ]
.RB [ "\-c count" ]
.RB [ "\-t" ] .RB [ "\-t" ]
.RB [ "\-c" ]
.RB [ "\-p" ] .RB [ "\-p" ]
.RB [ "\-a" ]
.RB [ "\-s" ] .RB [ "\-s" ]
.RB [ "\-a" ]
.RB [ "\-l" ] .RB [ "\-l" ]
.RB [ "\-f filter" ]
.RB [ "\-C" ]
.RI [device(s)] .RI [device(s)]
.SH DESCRIPTION .SH DESCRIPTION
NetHogs is a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most such tools do, it groups bandwidth by process - and does not rely on a special kernel module to be loaded. So if there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this, and if it's some kind of spinning process, kill it. NetHogs is a small 'net top' tool. Instead of breaking the traffic down per protocol or per subnet, like most such tools do, it groups bandwidth by process - and does not rely on a special kernel module to be loaded. So if there's suddenly a lot of network traffic, you can fire up NetHogs and immediately see which PID is causing this, and if it's some kind of spinning process, kill it.
.SS Options .SS Options
.TP .TP
\fB-h\fP
display available commands usage
.TP
\fB-V\fP \fB-V\fP
print version info prints version.
.TP
\fB-h\fP
prints available commands usage.
.TP
\fB-b\fP
bughunt mode - implies tracemode.
.TP .TP
\fB-d\fP \fB-d\fP
delay for refresh rate delay for update refresh rate in seconds. default is 1.
.TP .TP
\fB-v\fP \fB-v\fP
select view mode view mode (0 = KB/s, 1 = total KB, 2 = total B, 3 = total MB, 4 = MB/s, 5 = GB/s). default is 0.
.TP
\fB-p\fP
sniff in promiscuous mode (not recommended)
.TP
\fB-a\fP
monitor all devices, even loopback/stopped ones
.TP
\fB-t\fP
tracemode
.TP .TP
\fB-c\fP \fB-c\fP
limit number of refreshes number of updates. default is 0 (unlimited).
.TP
\fB-t\fP
tracemode.
.TP
\fB-p\fP
sniff in promiscuous mode (not recommended).
.TP .TP
\fB-s\fP \fB-s\fP
sort by traffic sent sort output by sent column.
.TP .TP
\fB-l\fP \fB-l\fP
display command line display command line.
.TP
\fB-a\fP
monitor all devices, even loopback/stopped ones.
.TP
\fB-C\fP
capture TCP and UDP.
.TP
\fB-f\fP
EXPERIMENTAL: specify string pcap filter (like tcpdump). This may be removed or changed in a future version.
.TP
.PP .PP
.I device(s) .I device(s)
to monitor. By default eth0 is being used to monitor. default is all interfaces up and running excluding loopback
.SH "INTERACTIVE CONTROL" .SH "INTERACTIVE CONTROL"
.TP .TP
m q
cycle between display modes (KB/s, KB, B, MB, MB/s, GB/s) quit
.TP
s
sort by SENT traffic
.TP
r
sort by RECEIVED traffic
.TP .TP
l l
display command line display command line
.TP .TP
r m
sort by 'received' switch between total (KB, B, MB) and throughput (KB/s, MB/s, GB/s) mode
.TP
s
sort by 'sent'
.TP
q
quit
.RE .RE
.SH "RUNNING WITHOUT ROOT" .SH "RUNNING WITHOUT ROOT"

View File

@@ -55,7 +55,7 @@ static void help(bool iserror) {
output << "When nethogs is running, press:\n"; output << "When nethogs is running, press:\n";
output << " q: quit\n"; output << " q: quit\n";
output << " s: sort by SENT traffic\n"; output << " s: sort by SENT traffic\n";
output << " r: sort by RECEIVE traffic\n"; output << " r: sort by RECEIVED traffic\n";
output << " l: display command line\n"; output << " l: display command line\n";
output << " m: switch between total (KB, B, MB) and throughput (KB/s, MB/s, " output << " m: switch between total (KB, B, MB) and throughput (KB/s, MB/s, "
"GB/s) mode\n"; "GB/s) mode\n";