![]() Using the “ -a” flag with the “ du” command displays the disk usage of all the files and directories. 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ġ. ![]()
0 Comments
Leave a Reply. |