4 ms·
du -s * | sort -n -r | sed 10q
by felixgallo 4y ago
du -s * | sort -n -r | sed 10q
- theossuary 4y agoOkay, but now show me the size of the file in a human readible format next to the name.
- deleted 4y ago[deleted]
- PeterWhittaker 4y agodu -s -h * | sort -r -h
- deleted 4y ago[deleted]
- benhoyt 4y agoYou can use the "-h" (human-readable) options to du and sort to do this: $ du -sh * | sort -rh 20M dist 6.9M pebble 1.5M internal 308K cmd ...
- felixgallo 4y agoit's already in a human readable format next to the name.
- deleted 4y ago[deleted]
- matja 4y agoadd: | numfmt --to=iec
- e12e 4y ago"sed 10q" is equivalent to "head"?