Entries Tagged as ''

How to Check Directory Disk Usage in Linux or Mac OS

Yes, we have GNOME or KDE that can help us to check disk usage. Mac OS also provides GUI utility for disk management. However, when we do something in terminal and want to know one direcotry and its sub-directories disk usage, “du” command will be most helpful. Plus “-h” option will return human readable number. The following screen shot is the command “du -h”.

Mac OS Terminal

P.S. The reason that I am interesting in this command is because “du” is my last name. :)