Created
November 20, 2013 01:25
-
-
Save marcanuy/7555921 to your computer and use it in GitHub Desktop.
Useful shell 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
#List user processes with their memory usage and total usage. | |
ps -u marcanuy -o pid,rss,command | awk '{print $0}{sum+=$2} END {print "Total", sum/1024, "MB"}' | |
#find all file larger than 500M in home dir | |
find ~ -type f -size +500M -exec ls -ls {} \; | sort -n |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment