1
yangg 2012-10-22 16:53:16 +08:00
lsof -i :80
|
2
bearice 2012-10-22 17:02:01 +08:00 8
sudo lsof -n -P| grep :8087
|
3
gavingeng 2012-10-23 00:29:14 +08:00 1
nc -v -w 2 127.0.0.1 8087
|
4
leecade 2012-10-23 01:34:11 +08:00
lsof -i tcp:8087
|
5
leecade 2012-10-23 01:42:52 +08:00 2
better 在 bash 自定义下
# belongs to port # usage: "port 8000" function port() { lsof -i tcp:$1 } # all open ports # usage: "ports" function ports() { lsof -Pni4 | grep LISTEN } |
6
xiaket 2012-10-23 14:16:48 +08:00
[xiaket@rondo:~]alias nettop
alias nettop='nettop -nm tcp' |