ユーザ用ツール

サイト用ツール


サイドバー

最新の10件
一覧
linux:network:netproc

Netproc

C製,GPL-3.0ライセンス

Install

.Debian Bullseye

snippet.bash
$ sudo apt install gcc make libncurses5-dev
$ git clone https://github.com/berghetti/netproc.git
$ cd netproc
$ make
$ bin/netproc -h
netproc - 0.5.5
Usage: netproc [options]
 
Options:
 -B, --bytes             view in bytes, default in bits
 -c                      visualization each active connection of the process
 -f, --file "filename"   save statistics in file, filename is optional,
                         default is 'netproc.log'
 -h, --help              show this message
 -i, --interface iface   specifies an interface, default is all
                         (except interface with network 127.0.0.0/8)
 -n                      numeric host and service, implicit '-c', try '-nh' to no
                         translate only host or '-np' to not translate only service
 -p, --protocol tcp|udp  specifies a protocol, the default is tcp and udp
 -v, --verbose           verbose mode, alse show process without traffic
 --si                    show SI format, with powers of 1000, default is IEC,
                         with powers of 1024
 -V, --version           show version
 
when running press:
 arrow keys    scroll
 s             change column-based sort
 q             exit

rootが必要

snippet.bash
$ bin/netproc 
[FATAL] Error create socket, is root?

実行例

$ sudo bin/netproc -h
netproc - 0.5.5
Usage: netproc [options]

Options:
 -B, --bytes             view in bytes, default in bits
 -c                      visualization each active connection of the process
 -f, --file "filename"   save statistics in file, filename is optional,
                         default is 'netproc.log'
 -h, --help              show this message
 -i, --interface iface   specifies an interface, default is all
                         (except interface with network 127.0.0.0/8)
 -n                      numeric host and service, implicit '-c', try '-nh' to no
                         translate only host or '-np' to not translate only service
 -p, --protocol tcp|udp  specifies a protocol, the default is tcp and udp
 -v, --verbose           verbose mode, alse show process without traffic
 --si                    show SI format, with powers of 1000, default is IEC,
                         with powers of 1024
 -V, --version           show version

when running press:
 arrow keys    scroll
 s             change column-based sort
 q             exit
$ sudo bin/netproc 

s keyでソートカラムをスイッチできる.PIDが良さそう
q keyで終了

Debian ではITPされている

コメント

コメントを入力. Wiki文法が有効です:
   ___   ____ __  __  _      __   ___ 
  / _ \ /_  / \ \/ / | | /| / /  / _ \
 / // /  / /_  \  /  | |/ |/ /  / // /
/____/  /___/  /_/   |__/|__/  /____/
 
linux/network/netproc.txt · 最終更新: 2021/07/04 18:52 by matoken