
To get the summary of a grand total disk usage size of a directory uses the option “ -s” as follows. ]# du -h /home/tecmintĦ74M /home/tecmint How to Find Total Size of a Directory in Linuxģ. This means you can see sizes in Bytes, Kilobytes, Megabytes, Gigabytes, etc. Using the “ -h” option with the “ du” command provides results in “ Human Readable Format“. How to Find the Directory Size in Human Readable FormatĢ. The output of the above command displays the number of disk blocks in the /home/tecmint directory along with its sub-directories. Enter the command as: ]# du /home/tecmint To find out the disk usage summary of a /home/tecmint directory tree and each of its subdirectories. How to Find the Size of a Directory in Linuxġ. Agedu – A Useful Tool for Tracking Down Wasted Disk Space in Linux.12 “df” Command to Check Linux System Disk Space.The information provided in this article is taken from the man pages of du command. This article explains 10 useful “du” commands with their examples, which might help you to find out the sizes of files and directories in Linux. Check Disk Usage of Files and Folders In Linux The du command also displays the files and directory sizes in a recursive manner. The du command has many parameter options that can be used to get the results in many formats. The Linux “ du” ( Disk Usage) is a standard Unix/Linux command, used to check the information of disk usage of files and directories on a machine.
