Find Command Composer

Choose your filters and get a ready-to-run find command, each part explained.

What the Find Command Composer does

find is arguably the most useful command on a Linux box and also the one with the strangest syntax. Tests and actions mix on one line, argument order changes behavior, and a glob left unquoted gets eaten by the shell before find ever sees it. The composer sidesteps all of that: you pick filters from dropdowns and text fields, and it writes the command correctly in real time.

Start with where to search and layer on what you know about the target. A name pattern like *.log, with an optional case-insensitive switch that swaps -name for -iname behind the scenes. A type: files, directories or symlinks. A size threshold, a modification window from the last hour to older than a month, and a depth limit for when you don't want find crawling an entire tree. There's also a toggle that skips hidden files and dot-directories, which keeps .git and similar noise out of results.

Then decide what happens to the matches. Print them, show long-format details, search inside them for a string, chmod them in bulk, or delete them. Each generated part is listed underneath with a one-line explanation, so the tool teaches the syntax while it writes it. Quoting is handled for you, and -maxdepth is placed before the other tests where find requires it.

About the delete actions

Choosing -delete or -exec rm makes a warning appear, and it's worth reading: these remove files permanently, with no confirmation and no trash bin. The recommended habit, which the warning spells out, is to run the same command without the delete part first and eyeball the list.

When the text search inside files gets serious, move up to the Grep/Sed Regex Tester to refine the pattern. Old files you find are usually archived rather than deleted, and the Tar Command Builder writes that command too.

More tools from CommandLinux

Find Command Composer Grep/Sed Regex Tester Tar Command Builder Chmod Permissions Calculator Crontab Decoder Systemd Service Generator SSH Config Generator IP Subnet Calculator Command Line Quiz Bash Script Boilerplate Generator

Willie has over 15 years of experience in Linux system administration and DevOps. After managing infrastructure for startups and enterprises alike, he founded Command Linux to share the practical knowledge he wished he had when starting out. He oversees content strategy and contributes guides on server management, automation, and security.