Questions tagged [files]
Manipulating files: copying, renaming, searching, analyzing, archiving, etc. For operating on text in a file, see /text-processing. For questions about the Files file manager (formerly Nautilus), see /nautilus.
5,064 questions
15
votes
2
answers
1k
views
Files with identical name in the same directory
User "john" came to me today with a problem: he had duplicate files in his homedir, and couldn't access those files.
Upon logging in on the machine as root, this is what I saw:
[rhel9box ...
0
votes
0
answers
31
views
Gnome doesn't find renamed files
I created a folder /home/user/firstname. When I typed firstname into Gnome's search tool, it was able to find it. Then I renamed the folder to secondname. Now after typing secondname into Gnome's ...
18
votes
6
answers
2k
views
Fastest way to make thousands of files
Some background:
So I was looking for a solution to find the fastest way to delete
large numbers of files in a folder. I found this here on this site:
Efficiently delete large directory containing ...
6
votes
3
answers
748
views
move files to directory according to prefix
I'm in the following situation
> ls
H9/ HG01109_chr1_hap1_contigs.list HG01952_chr1_hap2_contigs.list HG02572/ HG03486_chr1_hap1_contigs.list
...
10
votes
1
answer
814
views
Why could a perfectly accessible file fail to be opened due to EACCES?
I made a custom ~/.asoundrc on Ubuntu 24.04, but when I run alsamixer I get an error:
ALSA lib conf.c:4123:(config_file_open) cannot access file /home/ruslan/.asoundrc
ALSA lib conf.c:4043:(...
0
votes
0
answers
49
views
Is there an equivalent of /dev/null or tmpfile() for directories? [duplicate]
I use an application that when it starts up, it creates lots and lots of files in a specific directory.
These files are apparently useless, as I frequently remove them and I have never seen any ...
1
vote
0
answers
49
views
How do I recover a lost output file? [duplicate]
I was running a nohup'd badblock scan when I started running another nohup job in the same directory. I was assuming the jobs might mess up each others output, but what happend was (in aftersight no ...
1
vote
0
answers
74
views
What can go wrong with this command for flatten a directory recursively?
I have a very messy deep file hierarchy tree of files with duplicate names in different directories and possibly even duplicate files with different names.
$ find mp4/ -type f | more
mp4/._.DS_Store
...
0
votes
0
answers
58
views
Does ext4 allow partial update of unwritten to written extents in O_DIRECT case
O_DIRECT allows writes on a file to proceed with i_rwsem in read mode.
Let's say I have allocated 100 fs blocks(4K) for a file with posix_fallocate(). This now becomes an unwritten extent for the file....
-2
votes
1
answer
174
views
Mass file integrity checking
I have many, many tb of files from over the years, stored poorly and transferred. Mostly from Win7 days.
I am mindful that bitrot is a problem and I’m sure in my travels Ive seen a couple videos which ...
5
votes
4
answers
549
views
Creating n folders with equal number of files from a large folder with all files
I have a large folder of data files, which I want to copy into subfolders to make a specified number of batches.
Right now I count how many files there are and use that to make ranges, like so:
cd /...
10
votes
7
answers
1k
views
Check if multiple files exist on a remote server
I am writing a script that locates a special type of file on my system and I want to check if those files are also present on a remote machine.
So to test a single file I use:
ssh -T user@host [[ -f /...
0
votes
1
answer
118
views
bbe combine 2 files using blocks
I have 2 files: nand and spare.
I need to combine them like this:
first 512b from nand + first 16b from spare + second 512b from nand + second 16b from spare + and so on
I'm on Kali.
0
votes
0
answers
80
views
Cannot access files to delete
I currently use freefilesync on ubuntu 24.04 to back up my data. A couple of months ago I started to get errors on the external backup disk that a quick (and ineffective) look didn't resolve so I just ...
0
votes
0
answers
100
views
best way to have multiple homes?
I have a number of drives on a given machine with different disk configuration.
root drive.
2 disk mirror.
zfs array.
To accommodate a variety of failure scenarios, I want user homes to be:
zfs ...