Method-1: Get the size of a directory in Linux with du command This guide shows you how to find the directory size in Linux using the below three commands: You can get the actual size of a directory using the du command (Disk Usage), which is widely used by Linux administrators, but you can explore other commands for this purpose. The ls command can be used to list the contents of a directory, but it does not display the exact directory size and always shows each directory size as 4096 bytes ( 4 KB), which is the size of space on the disk that is used to store the meta-information for the directory, not what it contains It is very easy to check the size of directories and files in Linux using the GUI, but it is not always easy to get the size of a directory using the command line.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |