find(1) manual page: EXAMPLES — by Linux man-pages project (man7.org)
The examples section of the find manual shows safe patterns such as NUL-delimited deletion with -print0 and xargs -0, and pruning directories with -prune. Good to read before running find with rm.
Quick steps
- find /tmp -name core -type f -print0 | xargs -0 /bin/rm -f
Paraphrased from the source. Menus can differ by version, so check the original for full details.
Source: find(1) manual page: EXAMPLES by Linux man-pages project (man7.org). Licence: Link only (©).
- Source reviewed
- 2026-11-02
- Link checked
- 2026-11-02
- Tested hands-on
- Not by Oddbyte.Me