Instantly share code, notes, and snippets.

@jl2 /dud
Created Aug 29, 2011

What would you like to do?
"One liner" to show how disk space is being used in the current directory.
ls -Q -d . | xargs du -b -- | \
sort -n |\
perl -e 'while (<>) { @p = split; $sz = shift @p;\
printf("%3.2f MB \t@p\n",$sz/(1024*1024)); }'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment