Jennifer Zelazny

Random and Opinionated Thoughts

Tag: command line

Featured Hints HOWTOs UNIX

Show Disk Space Usage (Sorted)

Posted by: Jennifer Zelazny | 1 Comment

Every once and awhile I find myself needed to what is the space hog on my computer/server. While the command du – h in the command line works for a general overview – I really want to see the results in descending order (by space used). This command will list out everything in descending order so you can quickly see where the most space is used: du -k -s * | sort -k1 -g -r Read more