netproc(8)

๐Ÿ’– netproc(8) โ€” the manual, but make it slay ๐Ÿ’–

okay bestie, welcome to netproc(8), the man page you're gonna actually read. grab a snack ๐Ÿ“, we're doing this.


โœจ NAME โœจ

netproc โ€” a process-based network monitoring tool. she watches the traffic and tells you which process it belongs to. main character energy, honestly. ๐Ÿ‘‘


๐Ÿฆ‹ SYNOPSIS ๐Ÿฆ‹

netproc [-B] [-c] [-f [filename]] [-h] [-i iface] [-n] [-p udp | tcp] [-v]
        [--si]

๐ŸŒธ DESCRIPTION ๐ŸŒธ

So basically netproc monitors network traffic and tries to figure out which process this traffic belongs to. it's literally the move when you wanna know, fast, who is out here eating all your network resources. no cap. ๐Ÿ˜ญ

as of right now, netproc supports the TCP and UDP protocols over the IPv4 protocol. that's the vibe. ๐Ÿ’…


๐Ÿ’… OPTIONS ๐Ÿ’…

  • -B, --bytes โ€” view stuff in bytes. default is bits, just so you know. ๐Ÿ”ข
  • -c โ€” visualization of each active connection of the process. so you can see every single one, iconic. โœจ
  • --color 1|2|3 โ€” pick your color scheme. 1 is the default. (yes, aesthetics matter. always.) ๐ŸŒˆ
  • -f, --file "filename" โ€” save statistics into a file. filename is optional, and the default is 'netproc.log'. receipts, but on disk. ๐ŸŽ€
  • -h, --help โ€” show this message. hi, that's me, I'm the message. ๐Ÿ™ˆ
  • -i, --interface iface โ€” specifies an interface. default is all of them, except the interface with network 127.0.0.0/8 (bye loopback, love you tho). ๐Ÿฆ‹
  • -n โ€” numeric host and service, and it's implicit -c. try -nh if you only wanna not translate the host, or -np if you only wanna not translate the service. iykyk. ๐Ÿ’œ
  • -p, --protocol tcp|udp โ€” specifies a protocol. default is tcp and udp, because why choose. ๐Ÿ˜Œ
  • --si โ€” show SI format, with powers of 1000. default is IEC, with powers of 1024. math is math. ๐Ÿงš
  • -v, --verbose โ€” verbose mode. also shows processes without traffic. yes, the quiet ones too. ๐Ÿ‘€
  • -V, --version โ€” show version. ๐Ÿ“Œ

๐ŸŽฎ RUNNING CONTROL ๐ŸŽฎ

  • arrow keys โ€” scroll. move around, explore, live a little. ๐ŸŒธ
  • s โ€” change column-based sort. reorder the whole situation. ๐Ÿ”ฅ
  • q โ€” exit. goodbye, you did great. ๐Ÿซถ

โญ EXAMPLES โญ

This command will display the ips / ports of the udp traffic of the processes, monitoring all available interfaces, except the loopback, and log a summary in the file "log.txt":

# netproc -p udp -c -f "log.txt"

Useful to monitor the file generated in the above command:

$ watch -t -d 'cat log.txt'
$ watch -t 'cut -c -$COLUMNS log.txt'

Running whitout root:

$ sudo setcap "cap_net_admin,cap_net_raw+pe" /usr/local/sbin/netproc
$ export PATH=$PATH:/usr/local/sbin
quick note bestie: that cap_net_admin,cap_net_raw+pe line is literally handing the binary some serious power so it can do the network thing without you living in sudo forever. use it responsibly, okay? ๐Ÿ’›

๐Ÿ’€ BUGS ๐Ÿ’€

Help improve this software, report bugs at

https://github.com/berghetti/netproc/issues

be nice, be specific, be that girl. ๐Ÿ›โœจ


๐Ÿ‘‘ AUTHOR ๐Ÿ‘‘

Mayco Souza Berghetti <mayco.s.berghetti@gmail.com>


Copyright ยฉ 2020-2021 Mayco S. Berghetti. Licensed GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.


okay so that's the whole thing ๐Ÿ’– huge shoutout to the netproc(8) manual โ€” the source/version line says netproc(8), and it's dated 05 December 2021. like, a whole little time capsule. we love her, we respect her, periodt. ๐ŸŽ€๐Ÿฆ‹โœจ