![]() Use the “ -k” (displays size in 1024 bytes units). Find out the disk usage of a directory tree with its subtree in Kilobyte blocks. ]# du -ah /home/tecmintġ2K /home/tecmint/downloads/uploadprogress-1.0.3.1.tgzĢ4K /home/tecmint/downloads/2ġ2K /home/tecmint/uploadprogress-1.0.3.1.tgzĦ73M /home/tecmint/Ubuntu-12.10/Ħ. ![]() The below output is easier to understand as it shows the files in Kilobytes, Megabytes, etc. Using the “ -a” flag along with “ -h” displays disk usage of all files and folders in a human-readable format. 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. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |