Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-20-2012, 04:14 AM   #1
Registered: Oct 2010
Posts: 101

Rep: Reputation: 1
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
Old 07-20-2012, 04:47 AM   #2
Senior Member
Registered: Oct 2009
Location: Wroclaw, Poland
Distribution: Arch, Kubuntu
Posts: 1,279

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

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

Last edited by eSelix; 07-20-2012 at 04:49 AM.
1 members found this post helpful.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Store the size of largest file from a file/directory listing into variable SIZE lainey Linux - Newbie 3 11-15-2011 01:29 PM
directory size includes size of .. leostar_10 Linux - Newbie 4 12-03-2007 05:12 PM
How to know the size of a directory? kornerr Linux - General 4 06-30-2005 10:59 AM
directory size chandan Linux - General 3 06-26-2003 09:51 AM
how could I know the directory size gsbarry Linux - General 4 03-07-2003 09:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:30 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration