find Command Builder
Assemble a find command with name, type, size, age and depth tests, then choose to print, delete or exec on each match.
find Command Builder
Command
Deleting is immediate and has no undo. Run the same command with -print first to see exactly what would go.
History for this tool
The most recent data you entered in this tool, stored only in this browser.
Save what you type here, in this browser? Your work would go into this browser's local storage, so a refresh or a trip to another tool does not wipe it. You also get a short list of previous entries under the form, each one restorable with a click. Nothing is ever uploaded, and there is no account.
Being straight about the trade-off: anything kept there can be read by anyone who can use this browser profile, and by any script that later runs on this site. A tool page can hold a private key, a password or a signed token. Saving is convenient; it is not private.
About this tool
Build a find command from plain choices instead of remembering the test order. Filter by name, type, size, age, permissions and depth, exclude noisy directories, and then decide what happens to each match: print it, print it with a null separator, delete it, or run a command on it.
Questions
- Why does -delete deserve caution?
- It removes matches immediately and asks nothing. Run the same command with the print action first so you can see the exact list, then switch to delete.
- What is the null-separated option for?
- -print0 ends each path with a null byte instead of a newline, so a name that contains a space or a newline is still one item. Pair it with xargs -0.
- Does the order of the options matter?
- Yes. -maxdepth is a global option and has to come before the tests, and -delete has to come last. The builder already places them in a working order.