Skip to content

Instantly share code, notes, and snippets.

@shivanshtalwar0
Last active March 13, 2024 16:40
Show Gist options
  • Save shivanshtalwar0/57003818edf0becfaf7469fb4ff7e8ea to your computer and use it in GitHub Desktop.
Save shivanshtalwar0/57003818edf0becfaf7469fb4ff7e8ea to your computer and use it in GitHub Desktop.
Watch active network connections to vm
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