4
votes
3answers
2k views

Is there a hard limit to the number of files a directory can have? [duplicate]

Wondering if there is a limit to the number of files that can be stored inside a directory, in CentOS 6. There is one particular directory which could potentially have millions of subdirectories. ...
3
votes
2answers
267 views

How to “cd” to non utf8 directory

How can I change directory to directory that name consists of non ASCII default characters? root@senior:/media/data/hudba/# ls . -l total 3096 -rwxr-xr-x 2 user users 3160192 Jul 31 2006 Lucie ...
14
votes
3answers
510 views

Ensuring a repeatable directory ordering in linux

I run a hosted continuous integration company, and we run our customers' code on Linux. Each time we run the code, we run it in a separate virtual machine. A frequent problem that arises is that a ...
2
votes
4answers
332 views

50,000 file in one directory, what is my best option?

I'm forced to have this directory structure /var/www/$WEBSITE/$DIR1/$DIR2/$FILES for each of those $FILES, there is approx 50,000 XHTML pages. I'm running Cherokee, which has new front-end caching ...
4
votes
3answers
2k views

On linux, what does it mean when a directory has size 0 instead of 4096?

Here's a strange thing I haven't seen before -- a directory whose size is reported by ls as 0 instead of 4096, and I can't create any files within it. # ls -ld lib home drwxr-xr-x. 2 root root 0 ...
3
votes
4answers
342 views

optimal folder structure for storing 100k files on a USB drive

I need to store 100k files (around 40GB) in a USB drive. Each file has a unique int id (e.g 45000). Option one is to put all files in a single folder: root/ root/1.pdf root/2.pdf root/3.pdf ... ...
1
vote
1answer
452 views

What are the maximum number of files/directories allowed per directory in common Linux FS?

It is known that ext2/ext3 FS have a rather low limit of about 32k files/directories per directory. It looks like ReiserFS is limited in practice by the r5 hash function which allows about 1 200 000 ...
16
votes
3answers
19k views

What is the maximum number of files a file system can contain?

Given the current structure of a directory entry on a ext4 file system on Ubuntu, what is the maximum number of files a file system can contain? What is the general method of calculating the maximum ...
18
votes
10answers
12k views

Linux - What directories should I exclude when backing up a server?

I'm backing up a linux server and storing it on some other server. I started off with a simple rsync -aPh --del server.example.com:/ /mnt/backup Then someone pointed out that I shouldn't back up ...
8
votes
9answers
9k views

How to solve linux subdirectories number limit?

I have a website which will store user profile images. Each image is stored in a directory (Linux) specific to the user. Currently I have a customer base of 30+, which means I will have 30+ folders. ...
3
votes
9answers
2k views

Storing files in a directory… are there limits?

I am using CentOS 5 with Plesk 9 (64-bit), I am running a site where users will be uploading pictures. With a 64 bit os, are there any limits to how many files I can store? All I care about is ...