Skip to content
Newer
Older
100644 5 lines (3 sloc) 207 Bytes
fcc8027 @spf13 Migrating my old profile here. Separating aliases. Adding duf.
authored May 5, 2010
1 function duf {
2 du -k "$@" | sort -n | while read size fname; do for unit in k M G T P E Z Y; do if [ $size -lt 1024 ]; then echo -e "${size}${unit}\t${fname}"; break; fi; size=$((size/1024)); done; done
3 }
4
Something went wrong with that request. Please try again.