Skip to content

Instantly share code, notes, and snippets.

@notsobad
Created October 17, 2022 06:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notsobad/cef38a1eb2112d5493e76106b3a1e0fa to your computer and use it in GitHub Desktop.
Save notsobad/cef38a1eb2112d5493e76106b3a1e0fa to your computer and use it in GitHub Desktop.
run this script on machine first.
#!/bin/bash
run(){
cmd=$@
echo ">> $cmd"
eval $cmd
echo
}
run uptime
run free -m
run "dmesg|tail"
run df -h
run df -i
run ping baidu.com -c 3
run vmstat 1 3
run pidstat 1 3
run sar -n DEV 1 3
run sar -n TCP,ETCP 1 3
run mpstat -P ALL 1 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment