# 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.

- Category: DevOps (devops)
- URL: https://ilham.dev/tools/find-command-builder/
- Documentation: https://ilham.dev/tools/find-command-builder/index.md
- Keywords: find, command, builder, shell, files, search, name, size, mtime, delete, exec, linux, bash

## Example questions

- Why does -delete deserve caution?
- What is the null-separated option for?
- Does the order of the options matter?

## Properties

- Runs in the browser
- No login required
- No data uploaded


## About

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.

