Skip to content

Instantly share code, notes, and snippets.

@neophyt3
Created January 12, 2017 21:13
Show Gist options
  • Save neophyt3/6e6f5cdaea45ae5dace3adac1bd149e6 to your computer and use it in GitHub Desktop.
Save neophyt3/6e6f5cdaea45ae5dace3adac1bd149e6 to your computer and use it in GitHub Desktop.
Linux Top Command
#!/bin/sh
#Src: https://www.linode.com/docs/databases/mysql/tuning-your-mysql-database
echo [PID] [MEM] [PATH] && ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20
ps -eo pcpu,pid,user,args | sort -k 1 -r | head -20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment