Last active
March 13, 2024 16:40
-
-
Save shivanshtalwar0/57003818edf0becfaf7469fb4ff7e8ea to your computer and use it in GitHub Desktop.
Watch active network connections to vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias watch_netstat='watch -n 1 "echo '\''Proto Recv-Q Send-Q Local Address Foreign Address State'\'' && sudo netstat -ant | grep ESTABLISHED | awk '\''\$2 > 0 || \$3 > 0'\''"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment