Created
January 12, 2017 21:13
-
-
Save neophyt3/6e6f5cdaea45ae5dace3adac1bd149e6 to your computer and use it in GitHub Desktop.
Linux Top Command
This file contains 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
#!/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