How Large Is a Directory Linux?
Contents When Listing the Contents of a Directory Using the Ls Command, You May Have Noticed That the Size of the Directories Is Almost Always 4096 Bytes (4...
When listing the contents of a directory using the ls command, you may have noticed that the size of the directories is almost always 4096 bytes (4 KB). That’s the size of space on the disk that is used to store the meta-information for the directory, not what it contains.
How do I find the size of a directory in Linux?
How to view the file size of a directory. To view the file size of a directory pass the -s option to the du command followed by the folder. This will print a grand total size for the folder to standard output.
Must Read
How do I check the size of a directory in Unix?
You can run “df” UNIX command with the current directory or any specified directory. See below example of df command in UNIX to find out the size of a directory along with space left in file system. $ df -h .