Revised FileSearch
Pre-releaseFileSearch 3 - 2026 Update
Hello! It's been a while since i updated the program, but here it is with wildcards, threading, faster searches and everything we had before. The original C code was converted to Rust using Deepseek, which ran first try, but that was just the SDM update with nothing new. That version will be included aswell for those seeking a more simple version. Both are free from the memory error
Installation
On Linux and macOS, to copy the binary to your system bin location, run this in the directory where you downloaded it:
chmod +x ./filesearch
sudo cp ./filesearch /bin
On Windows, open a command prompt with administrator privileges by pressing the Windows button (or the search button next to it), type 'Command' and the first result should be Command Prompt. Click Run as Administrator. Navigate to the directory where you downloaded filesearch.exe to and then run the command:
copy .\filesearch.exe C:\Windows\System32\.
For both systems, once you copied it into the system directory, you should be able to run the utility from anywhere on your system. Just type filesearch [your switch] [queries] and boom! You have successfully installed FileSearch on your system. A simple and compact command‑line utility.
Note: It is important to understand that you must know the exact filename/directory name of the file or directory you are searching for. The algorithm supports wildcards (*.txt, report*, image_??.jpg) for partial matching, but it doesn't guess or look inside the files. Using standard wildcards can assist greatly when used correctly, however, so it isn't a total loss.
Usage
The command structure is simple but powerful:
filesearch [/SDM | /FM | /BOTH] [pattern] [start_directory] [options]
Type filesearch /? for the full list of options.
Both Linux and Windows binaries are included in this release.
What's Different Now
The revised version is actually fast. Like, “use‑all‑your‑CPU‑cores” fast. I rewrote it in Rust and it actually works properly now:
- Multi‑threading – Use
--threads 8to make your CPU do work for once - Wildcards that actually work –
*.txt,report_2024*.pdf,image_??.jpg - New /BOTH mode – Can't remember if it's a file or directory? Use
/BOTHto search for both - Case‑insensitive option –
-iflag for when you can't remember your own capitalization - Progress tracking – Actually shows you what it's doing instead of just hanging
- Logging – Save results to a file with
--log results.txt - Depth limiting – Use
--depth 3to stop it from going too deep - BFS search – Won't get stuck in that one deep tree forever anymore
Examples
# The basics (still work like before)
filesearch /FM secret.txt .
filesearch /SDM MyDocuments C:\Users
# The new stuff
filesearch /BOTH config* . -i --threads 8
filesearch /FM *.tmp C:\ --depth 3 --log cleanup.txt
filesearch /SDM node_modules ~ --depth 2 --threads 4
filesearch /FM *.rs . --dfs --log rust_files.txt