mirror of
https://github.com/Matir/skel.git
synced 2026-05-25 21:19:09 -07:00
4 lines
211 B
Bash
4 lines
211 B
Bash
function duf {
|
|
du -sk "$@" | 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
|
|
}
|