mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-04-12 16:08:02 +00:00
Merge f695d1264b
into fa396ad771
This commit is contained in:
commit
ae2ca25d79
|
@ -94,7 +94,13 @@ function req20() {
|
|||
|
||||
# top20 of Using tcpdump port 80 access to view
|
||||
function http20() {
|
||||
sudo tcpdump -i eth0 -tnn dst port 80 -c 1000 | awk -F"." '{print $1"."$2"."$3"."$4}' | sort | uniq -c | sort -nr | head -n 20
|
||||
sudo tcpdump -i $(ip route get 1.1.1.1 \
|
||||
| awk '/^1.1.1.1 via / {print $5}') -tnn dst port 80 -c 1000 \
|
||||
| awk -F"." '{print $1"."$2"."$3"."$4}' \
|
||||
| sort \
|
||||
| uniq -c \
|
||||
| sort -nr \
|
||||
| head -n 20
|
||||
}
|
||||
|
||||
# top20 of Find time_wait connection
|
||||
|
|
Loading…
Reference in New Issue
Block a user