Last active
January 1, 2023 10:42
-
-
Save chikien276/0f783a40874a58a6492188fd3d9a2cb0 to your computer and use it in GitHub Desktop.
Human readable memory usage in Linux per process
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
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment