iftop is great tool to view almost live bandwidth usage distinguished by source-ip source-port destination-ip destination port.
I'm using it to see which client's ip is using most bandwidth. Now I would like to store output somewhere.
iftop uses ncurses so
iftop > log.txt
does not work as expected, result file is not readable.
Is there any tool like this which can be used to pipe output to a text file?
top
tool has batch mode-b
which enables you to save snapshot by redirecting output to a file, butiftop
does not have such an option. – Khaled Apr 14 '12 at 14:47tcpdump
if you want to be very precise... – gies0r Dec 28 '20 at 19:39