LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Directory Size (https://www.linuxquestions.org/questions/linux-newbie-8/directory-size-4175417747/)

mmhs 07-20-2012 03:14 AM

Directory Size
 
dear all

i have a simple question

i know Block Size in linux is 4K therefore ls -l shows directories size is 4096

but why some directories are not like this

drwxr-xr-x 6 root root 4096 May 11 2011 dummy
drwxr-xr-x 140 root root 12288 Jul 20 04:03 etc
drwxr-xr-x 2 root root 4096 Jan 9 2012 ram
drwxr-x--- 32 root root 16384 Jul 18 08:20 root

eSelix 07-20-2012 03:47 AM

That directories occupy more then one block (precisely: entries in this directory). For example: 12288/4k=3, 16384/4k=4.

Quote:

Block Size in linux is 4K
It depends on file system and for ex. in ext4 can be overridden.


All times are GMT -5. The time now is 01:04 PM.