Review your favorite Linux distribution.
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 12-08-2006, 09:36 AM   #1
LQ Newbie
Registered: Dec 2006
Posts: 2

Rep: Reputation: 0
number of files in linux system in one directory

i run a wiki related project at duno and i was wondering how many directories with entries i can have
in one single directory. Or should i design this differently?

thank you for your advice.
Old 12-08-2006, 01:13 PM   #2
Registered: Dec 2006
Distribution: Arch
Posts: 44

Rep: Reputation: 15
I think the number of files you can have is limited to the number of inodes your filesystem supports and is on mount point by mount point basis. For ext2 I believe the limit is 10^18 and for reiser 2^32 (thats what wikipedia reckons anyway !!) I guess the point is that you're very unlikely to hit the limit.

Having said that, I've found that directories that have very large numbers of files in become diffecult to manage. Commands like 'ls' stop working becuase you have to many arguments and other commands take a long time to complete. I would therefore suggest trying to keep the number of files down to the hundreds rather than the thousands. Obviously this is just my opinion
Old 12-08-2006, 01:15 PM   #3
Registered: Feb 2003
Location: Richmond VA
Distribution: Slackware 11 -- CentOS 4.4
Posts: 115

Rep: Reputation: 15
what file system? something tells me reiserfs is best for what you're doing, in which case look at:

(Link thanks to this thread):


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
Number of files in directory bullium Linux - General 13 08-31-2011 08:50 AM
Maximum number of files in a directory neranjana General 14 05-13-2010 01:33 PM
Upper limit on number files in a directory? Peufelon Linux - Desktop 1 10-15-2006 01:34 AM
finding number of files in a directory pantera Programming 2 08-20-2004 10:17 AM
finding the number of files in each directory ridertech Programming 1 06-02-2004 10:26 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:56 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration