I see many methods of searching (or finding) files in current directories or even a specific tree, but am unable to locate an option for me.
I have an Ubuntu 18.04 LTS setup with 14 drives mounted individually (UUID mounted in the FSTAB, just in case that matters). They are all SATA (which doesn't matter I'm sure), but they are mounted separately, so no RAIDS, no JBODS, no other way of linking; why i look at my Files, i see the 14 mounted drives plus the system SSD.
I need to be able to search all these drives with a single CLI for a file with a specific file type. In this example, let's assume I'm searching for any and all files that are .iso files; how can i do this fairly easily, hopefully with the find command, but at least with minimal coding rather than a full Perl script or something. I'm not a total coding noob, but this one has been bothering me.
TIA
which will find (starting in /) all files that end in .iso
You may want to add
2>/dev/null
if there are many directories you don't have read access to & don't want many permission denied errors amongst the output.locate
will be many times faster thanfind
command.If the
.iso
was just created today you will need to update the database first: