Difference between revisions of "Pftop interactive mode"
From Free Knowledge Base- The DUCK Project: information for everyone
(Created page with "When pftop is running in interactive mode, it reads commands from the terminal and acts upon them accordingly. In this mode, the terminal is put in CBREAK, so that a charac...") |
|||
Line 41: | Line 41: | ||
S Sort by Source port. | S Sort by Source port. | ||
T Sort by destination address (To). | T Sort by destination address (To). | ||
+ | |||
+ | [[Category:Computer_Technology]] | ||
+ | [[Category:FreeBSD] |
Revision as of 00:38, 4 February 2024
When pftop is running in interactive mode, it reads commands from the terminal and acts upon them accordingly. In this mode, the terminal is put in CBREAK, so that a character will be processed as soon as it is typed. The command will be processed and the display will be updated immediately thereafter (reflecting any changes that the command may have triggered). If a key is pressed while pftop is in the middle of updating the display, it will finish the update and then process the command.
These commands are currently recognized:
c Enable disable state caching (enabled by default). f Set the state filter expression. h,? Display a summary of the commands (help screen). n Set number of lines to display. o Select next sorting Order. p Pause/resume display updates. q Quit pftop. r Reverse current sorting order. s Set display update interval in Seconds. v Select next View. 0-7 Select one of the views directly.
Cursor Scroll display (up/down), and switch views (left/right). Most
of the emacs/mg motion keys work as well.
SPACE Update display immediately. CTRL-L Refresh display. CTRL-G Clear command entry line.
The following keys are shortcuts for sorting the display:
A Sort states by Age. B Sort states by number of Bytes. D Sort by Destination port. E Sort states by Expiry time. F Sort by source address (From). K Sort by peaK speed when caching is enabled. N No ordering. P Sort states by the number of Packets. R Sort by instantaneous speed (Rate) when caching is enabled. S Sort by Source port. T Sort by destination address (To).[[Category:FreeBSD]