Skip to main content

Questions tagged [find]

For questions pertaining to find, a command-line utility to search for files in a directory hierarchy. Use this tag for questions about find itself or questions about issues arising from using the find command-line utility.

0 votes
2 answers
64 views

When using the find command or any other recursive file searches, I always notice /usr/sbin/authserver in the context of a "permission denied" error. Just out of pure curiosity, what ...
Rumi-SE Must Follow the CC-SA's user avatar
7 votes
3 answers
509 views

find takes an (optional) list of (what the man page calls) "starting points", i.e. directories, followed by an expression. Is there a way to cleanly separate both types of arguments so that ...
Florian Brucker's user avatar
0 votes
2 answers
109 views

I'm trying to understand some subtle behavior of find and its -regex option I am trying to create symbolic links from files entitled slides_.*.pdf in folders that start with L1[0-6]. I tried the ...
mikemtnbikes's user avatar
1 vote
2 answers
134 views

I have a folder with many subfolders full of various Quarto(reg) files & in those files there are links that are located in varying positions in the file lines. UPDATE ON 3 November 2025 in ...
iembry's user avatar
  • 205
6 votes
3 answers
377 views

Can someone explain the issue I've described below, and perhaps suggest a resolution? I'm trying to process a set of filenames using find. My platform is macOS (Ventura 13.7.7), and the shell is zsh ...
Seamus's user avatar
  • 3,896
4 votes
4 answers
460 views

I would like to be able to find all files in multiple directories whose file names start with the same string, but preferably not if that string is only one word or contains fewer than perhaps 5 ...
EmmaV's user avatar
  • 4,443
1 vote
0 answers
58 views

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 ...
Niklas Rosencrantz's user avatar
0 votes
2 answers
103 views

In my notes I had written: To find most recently deleted files. Note: This will not search deleted files on external drives. find ~/.local/share/Trash/files/ -type f -printf '%C+ %f\0' | sort -rz | ...
1toneboy's user avatar
  • 493
11 votes
5 answers
1k views

I would like to be able to search all my $PATH for files matching a given pattern. For example, if my PATH is /usr/local/bin:/usr/bin:/bin and there's a /usr/local/bin/gcc-4 and a /usr/bin/gcc-12, I ...
umläute's user avatar
  • 6,734
6 votes
1 answer
402 views

My question is not aimed specifically at understanding find's and its -exec option's security implications, but more generally at understanding why (if at all!) such programs are particularly ...
Enlico's user avatar
  • 2,362
-1 votes
3 answers
159 views

I want to find out in which of my 1200 *.gz files a certain IP address occurs on a certain date (17.07.2025). I could not find the IP address in my current logs: grep 'IP address' *.logs My attempt ...
fl1tz's user avatar
  • 1
2 votes
3 answers
414 views

In Linux in a Folder there are these files: LQ0gfKQej7GKG44Cn0sSAC.part01.rar LQ0gfKQej7GKG44Cn0sSAC.part02.rar LQ0gfKQej7GKG44Cn0sSAC.part03.rar LQ0gfKQej7GKG44Cn0sSAC.part04.rar ...
Banana's user avatar
  • 241
0 votes
1 answer
85 views

(This is more a question out of curiosity and less a present problem that needs to be solved) I recently learned more about time-related tests in GNU find, and something caught my eyes: With files, ...
Henning Kockerbeck's user avatar
6 votes
1 answer
730 views

In Linux in a Folder there are many files, all created with fallocate with random size. How to find files whose size is not divisible by 4096 and correct the filesize (rounded up) to a multiple of ...
Banana's user avatar
  • 241
-4 votes
1 answer
129 views

I was directed to this StackExchange post: Why is looping over find's output bad practice? The core issue is that Unix filenames can contain any character except the null byte (\0). This means there ...
Filangieri's user avatar

15 30 50 per page
1
2 3 4 5
241