===== Check Which Folders Use The Highest Disk Space In Linux ===== This command is helpful to track the disk usage and bring it down to the disk usage hogs.\\ ==== Command ==== ''du -h 2>/dev/null | grep %%'%%[0-9\.]\+G%%'%%''\\ //Replace with your desired directory (for root use / )//\\ ==== Output ==== {{:howto:disk-space-usage-665x206.png?nolink&400|}} ==== Explanation ==== ''du -h''\\ Shows the directory and the sizes of each in a human readable format.\\ ''2>/dev/null''\\ Discards output of non directories (such as /proc/)\\ ''grep %%'%%[0-9\.]\+G%%'%%''\\ Sorts out directories that is 1+ GBs and up.\\ ==== Reference ==== https://cloudcone.com/docs/article/check-which-folders-use-the-highest-disk-space-in-linux/