Introduction to the FFF: Find Files Fast
In the Linux world, quickly locating files can save working hours and improve productivity. The FFF (Find Files Fast) method combines classic and modern tools to offer instant and accurate searches, adapting to both new users and experienced system administrators.
FFF essential tools
- find: the classic utility to search by name, type, size, date of modification and more.
- fd: a friendly alternative to
findwith simplified syntax, default colors and improved performance. - grep / ripgrep (rg): search for content within files using regular expressions; ripgrep is notably faster and respects .gitignore by default.
- fzf: diffuse selector to filter real-time results using an interactive interface and preview.
Typical work flows
- Locate by name or extension: use
fd -e pdfto find all PDFs orfind . -name '*.conf'for configuration files. - Filter with fzf: pipe as
fd --type f | fzf --preview 'bat --style=numbers --color=always {}'shows a preview of the selected file. - Search within the content: once the file is selected, run
rg 'pattern'orgrep -R 'pattern' .to locate specific text. - Rapid actions: open the result with the default editor (
xdg-openorcode), copy the route to the clipboard (pbcopyin macOS orxclip -selection clipboardin Linux) or delete files directly from the command line.
Tips to optimize your search
- Limit the scope with
-type for-type dto avoid unnecessary results from directories or devices. - Use the file system attributes:
fd --hiddenincludes hidden files when necessary; and--no-ignoreomit the filters of .gitignor. - Save frequent searches such as alias or shell functions, for example:
ff() { fd --type f | fzf --preview 'bat --style=numbers --color=always {}'; }. - Take advantage of the cache of
locatefor ultra-fast searches in systems where the database is regularly updated (sudo updatedb). - It combines multiple criteria:
fd -e txt -X grep -l 'TODO'find all the text files that contain the word ALL.
Conclusion
Adopting the FFF approach transforms how to interact with the Linux file system. With the right tools and a well-defined workflow, finding any file goes from a tedious task to an almost instant operation, releasing time for more creative and productive tasks.


