All Questions
Tagged with directory filesystems
26
questions
1
vote
2
answers
58
views
Delete folders asynchronously
I have a large file system in which I have to delete certain directories from time to time. Currently I have a script which amongst other things, deletes a folder and subsequently generates an email ...
0
votes
0
answers
55
views
is the linux directory inode different then the file inode?
Im currently reading the book
"How Linux Works" by Brian Ward
and on chapter 4.5 it is said
"A directory inode contains a list of filenames and corresponding
links to other inodes&...
1
vote
1
answer
95
views
Ridiculous Number of Files in a Directory
My employer acquired a company with one particular piece of software that stores a lot of PDF and PNG file files in one directory. When I first replicated it from AWS, there were about 11.5 million ...
3
votes
1
answer
14k
views
"stat" says "permission denied", even though all the permissions are in place
I have this:
ls -al /home/my_user/dir1/dir2/file1.txt
-rwxr-xr-x 1 http http 2798 Dec 30 18:18 /home/my_user/dir1/dir2/file1.txt
However, I can't stat it:
sudo -u http stat /home/my_user/dir1/dir2/...
0
votes
1
answer
853
views
ls *.csv --ignore="*pattern*" returns files which contain "pattern"
Why does ls --ignore not ignoring the pattern?
Looking at the below example:
mkdir books
cd books
touch books_abby.csv
touch books_karen.csv
touch books_david.csv
touch books_tom.csv
This creates ...
0
votes
2
answers
402
views
Linux, search for extended attribute value
When a directory contains some files with non-empty extended attributes, all the attribute values can be shown as follows:
$ getfattr -d *
# file: file1
user.comment="comment1"
# file: file2
user....
0
votes
0
answers
51
views
How to "stage" file movements before performing them on Windows?
I have a disk with terabytes of data. I would like to reorganize the disk.
The problem on Windows is that if I move one of the directories to the new place, I have to wait hours for that relocation ...
0
votes
4
answers
558
views
Scan windows file system for directories containing certain words
Is there a command that I can run on a windows Server 2008 r2 that will only show directories that contain a certain word.
For Example I want to find all directories that contain "logs"
That means ...
0
votes
1
answer
63
views
Directory vs Files for efficient search and retrieval of files
I am working on a website where users have ability to store all kinds of media on the server and there can be any number of users.
I thought I would store all the media which users upload like this:
...
1
vote
2
answers
174
views
Windows network folder directory list inconsistent when viewed from two different client machines
I am on a corporate network using Windows. There is a network share provided by a NetApp appliance. When I log on to two different machines and view the network drive, I see inconsistent directory ...
1
vote
0
answers
1k
views
Directory index full, is this fsck result OK?
I found these in my /var/log/messages:
kernel: EXT4-fs warning (device md2): ext4_dx_add_entry: Directory index full!
kernel: EXT4-fs warning (device md2): ext4_dx_add_entry: Directory index full!
...
16
votes
3
answers
50k
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.
...
4
votes
3
answers
3k
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 BĂ...
-1
votes
1
answer
96
views
Get size of folder without iterating over its content? [closed]
Is there any unix file system (or network fs) that can get size of folder without iterating over its content?
I need the fastest and cheapest way to get size of folder (maybe some fs cache metadata ...
18
votes
4
answers
4k
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
4
answers
716
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 ...
8
votes
3
answers
9k
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
4
answers
627
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
...
root/...
4
votes
2
answers
5k
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 ...
1
vote
2
answers
1k
views
OpenVZ file system
OpenVZ file system (simfs) has a limit of files per folder.
We reached that limit and we are in trouble...
Which is the best approach to this problem?
Thank's in advance!
46
votes
3
answers
92k
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 ...
2
votes
3
answers
187
views
"One-sided" diff
I've got two large directory trees--think years of client work for an agency. One is old and out of date; the other is larger and in current use. I'd like to delete the former, but I want to be sure ...
50
votes
14
answers
62k
views
Linux - What directories should I exclude when backing up a server?
I'm backing up a Linux server and storing it on another server.
I began with a simple
rsync -aPh --del server.example.com:/ /mnt/backup
Then someone pointed out that I shouldn't back up /proc, ...
10
votes
10
answers
16k
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. ...
4
votes
7
answers
4k
views
Is there a folder size tool for linux? (web-based or working on console) [closed]
I have a debian server which has a lot of user folders and I would like to have a tool like FolderSize application in Mac, where i can check the filesystem by filetype or foldersize (or whatever ...
3
votes
9
answers
3k
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 ...