Skip to content

Instantly share code, notes, and snippets.

@tracker1
Last active April 6, 2018 01:36
Show Gist options
  • Save tracker1/28fa3cba7465448394b30991c3c29387 to your computer and use it in GitHub Desktop.
Save tracker1/28fa3cba7465448394b30991c3c29387 to your computer and use it in GitHub Desktop.
Linux Troubleshooting
curl https://raw.githubusercontent.com/cleanbrowsing/dnsperftest/master/dnstest.sh | bash | sort -k 22 -n
# https://news.ycombinator.com/item?id=16690705
uptime # uptime and CPU stress
w # or better yet:last |head # who is/has been in
netstat -tlpn # find server role
df -h # out of disk space?
grep kill /var/log/messages # out of memory?
ps auxf # what's running
htop # stressed? , look out for D (waiting on I/O typically) processes
history # what has changed recently
tail /var/log/application.log # anything interesting logged?
df -h # inode availability
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment