Skip to content

Instantly share code, notes, and snippets.

@rpetrenko
Last active June 21, 2022 23:07
Show Gist options
  • Save rpetrenko/27d0cb3e81c69071fc1b1c86816ddeb2 to your computer and use it in GitHub Desktop.
Save rpetrenko/27d0cb3e81c69071fc1b1c86816ddeb2 to your computer and use it in GitHub Desktop.
linux helpfull commands
# number of ssh connections
netstat -tnpa | grep 'ESTABLISHED.*sshd'
# network interfaces with their max speed
for i in $(netstat -i|cut -f1 -d" "|tail -n+3);do echo "$i: $(ethtool "$i"|grep Speed|sed 's/Speed://g')";done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment