Last active
June 21, 2022 23:07
-
-
Save rpetrenko/27d0cb3e81c69071fc1b1c86816ddeb2 to your computer and use it in GitHub Desktop.
linux helpfull commands
This file contains hidden or 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
# 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