Rookie Geek
A geeky noob mumbling jumble.
Monday, 16 December 2013
How to list and sort directories by size in Linux/Unix
Had a brain freeze and forgot how to list all files within a directory and sort by size - google returned me this awesome gem:
du -k | sort -nr | more
Or human readable output:
du -sh
http://snippets.aktagon.com/snippets/86-how-to-list-and-sort-directories-by-size-in-linux-unix
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment