limit to number of files in a given directory


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users limit to number of files in a given directory
# 1  
Old 02-05-2004
limit to number of files in a given directory

Everyone,

We are on a unix AIX 4.3 platform and our application is written as such that all configuration files must reside in a specific directory. Currently there are over 10,000 files in this directory (and growing at about 300 per month). My question is is there a physical limit to the number of files that can reside in 1 directory?

Thanks in advance!

Todd
# 2  
Old 02-05-2004
you can have as many files on a fs as there are alocated inods.
more or less when you run out of useable space.

dont forget you can also add space to the VG. but you can only have so many PP per VG.

just remember each file takes up a BLOCK of space. (typicaly 512 bytes)
# 3  
Old 02-05-2004
Interestingly enough, I would've thought the only limit was disk space, but then I found one of Perderabo's posts from last summer. I forgot that directories are themselves files and that all files might have a max size.

https://www.unix.com/unix-for-dummies-questions-and-answers/10548-linux-solaris-has-any-limit-folder-size.html?s=

But after reading it, it pretty much looks like the same as what Optimus_P said ... you'll probably run out of usable disk space before you run into any of these other limits on a directory.

Of course, if you keep putting so many files in one directory, you're gonna run into other problems trying to manipulate them (even simple things like just listing all the files).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Limit number of files transferred

I've a folder in remote server and it has 50 files. I like to transfer these files by first 10 and next 10 files. I'm using mget command to transfer the files. How to limit the file transfer limit to 10. instead of copying 50 files at a time. Thanks Janarthan (5 Replies)
Discussion started by: Janarthan
5 Replies

2. Red Hat

Is there limit on number of ACLs' per directory in Redhat

I work on a distribution application on Linux which generates bulk reference data extract feeds and stores them on a Linux server. I have several consumer applications access the files stored on this Linux server using FTPS protocol. However in order for consumer applications to have access to... (2 Replies)
Discussion started by: waavman
2 Replies

3. Shell Programming and Scripting

How to count number of files in directory and write to new file with number of files and their name?

Hi! I just want to count number of files in a directory, and write to new text file, with number of files and their name output should look like this,, assume that below one is a new file created by script Number of files in directory = 25 1. a.txt 2. abc.txt 3. asd.dat... (20 Replies)
Discussion started by: Akshay Hegde
20 Replies

4. UNIX for Dummies Questions & Answers

Limit Number of files

hi guys how can i limit number of files in a disk or partition ? or how can i make a limit to inode number for a disk or partition ? ext3 or ext4 file system (1 Reply)
Discussion started by: mhs
1 Replies

5. UNIX for Dummies Questions & Answers

Count number of files in directory excluding existing files

Hi, Please let me know how to find out number of files in a directory excluding existing files..The existing file format will be unknown..each time.. Thanks (3 Replies)
Discussion started by: ammu
3 Replies

6. UNIX Desktop Questions & Answers

limit number of sub-dirs searched for files

using: find . -type f -print|xargs -li "string", how do I limit the dated directories (2010-7-14, 2010-7-13,etc.) to just 2009 & 2010 years of directories to search. We go back to 2004 in our archives, way too many files. (3 Replies)
Discussion started by: MJThom713
3 Replies

7. Shell Programming and Scripting

Number of files per directory

Hi Guys, I am trying to display the total number of files within a directory (including sub dirs): i.e. solaris> du -sh * | sort +0rn 1009K cron 940K lib 849K svc 489K cacao 261K opt 212K preserve 167K dt But instead of the size I would like the number of files... (9 Replies)
Discussion started by: flexinfo
9 Replies

8. UNIX for Dummies Questions & Answers

Number of files in a directory

I have a directory which has lots of directories and files in it. I want to determine the total number of files in the top level directory (inclduing the files in sub-dirs) Is there a unix command of that ?/ Thanks !!! (3 Replies)
Discussion started by: tantric
3 Replies

9. Shell Programming and Scripting

Number of files in a particular directory

Hi, I am new to unix shell scripting.I am using Korn shell. I need to find if there are any files in a particular directory.first I need to find the number of files in the directory.If the file count is greater than 0 then I have to print the file names in a textfile and send an email to the... (5 Replies)
Discussion started by: dbplatha
5 Replies

10. UNIX for Dummies Questions & Answers

printing number of files ONLY in ~ directory

Could someone help me please. I'm trying to write a shell script that prints the number of files I have in my home directory. Files only though, directories not included. I was thinking about using a pipe that includes wc but I don't know any commands that isolate the number of files you have in... (4 Replies)
Discussion started by: fasdafdsf
4 Replies
Login or Register to Ask a Question