Program: find
Finds files by name, size, time and permissions and runs commands on them.
Package: find-xargs
Usage
find [PATH]... [EXPRESSION]
Description
Walk through each PATH (the current directory if none is given) and everything below it, and check every name
against EXPRESSION. Without an action, every name for which the expression is true is printed.
Tests (N as +N for more than N, -N for less than N, N for exactly N):
-name PATTERN, -iname PATTERN the name matches (* ? [...], -iname ignores case)
-path PATTERN, -ipath PATTERN the whole path matches (also -wholename)
-type X, -xtype X f file, d directory, l symbolic link (-xtype: what the link points to)
-size N[ckMG] size in units, rounded up (no unit: blocks of 512 bytes)
-mtime N, -mmin N changed N days or N minutes ago (also -atime, -amin, -ctime, -cmin)
-newer FILE changed after FILE
-perm MODE, -perm -MODE, -perm /MODE exactly these, at least all, or any of these permission bits
-user NAME, -group NAME, -uid N, -gid N, -links N
-readable, -writable, -executable, -empty, -true, -false
Actions: -print and -print0 show the name (ending in a newline or a null byte), -delete removes it, -prune
keeps find out of a directory, -quit stops at once. -exec COMMAND ; runs COMMAND for each name, {} stands
for the name; with {} + at the end it runs once for many names. -ok is like -exec with ; but asks first.
Combine with ( ), ! (not), -a (and, also between two tests), -o (or) and the comma (both, the last counts).
-maxdepth N, -mindepth N go at most N levels down, leave out the first N levels
-depth check a directory after its content (as -delete does)
-P, -L, -H (before PATH) never follow symbolic links (default), always, only for each PATH
Options in the simulator
-
--help show this help and exit
80 more options of the real program, not in the simulator yet
-
-H not in the simulator yet Explanation to come
-
-L not in the simulator yet Explanation to come
-
-P not in the simulator yet Explanation to come
-
-D needs a value not in the simulator yet Explanation to come
-
-O needs a value not in the simulator yet Explanation to come
-
--daystart not in the simulator yet Explanation to come
-
--follow not in the simulator yet Explanation to come
-
--nowarn not in the simulator yet Explanation to come
-
--regextype needs a value not in the simulator yet Explanation to come
-
--warn not in the simulator yet Explanation to come
-
--depth not in the simulator yet Explanation to come
-
--files0-from needs a value not in the simulator yet Explanation to come
-
--maxdepth needs a value not in the simulator yet Explanation to come
-
--mindepth needs a value not in the simulator yet Explanation to come
-
--mount not in the simulator yet Explanation to come
-
--noleaf not in the simulator yet Explanation to come
-
--xdev not in the simulator yet Explanation to come
-
--ignore_readdir_race not in the simulator yet Explanation to come
-
--noignore_readdir_race not in the simulator yet Explanation to come
-
--amin needs a value not in the simulator yet Explanation to come
-
--anewer needs a value not in the simulator yet Explanation to come
-
--atime needs a value not in the simulator yet Explanation to come
-
--cmin needs a value not in the simulator yet Explanation to come
-
--cnewer needs a value not in the simulator yet Explanation to come
-
--context needs a value not in the simulator yet Explanation to come
-
--ctime needs a value not in the simulator yet Explanation to come
-
--empty not in the simulator yet Explanation to come
-
--false not in the simulator yet Explanation to come
-
--fstype needs a value not in the simulator yet Explanation to come
-
--gid needs a value not in the simulator yet Explanation to come
-
--group needs a value not in the simulator yet Explanation to come
-
--ilname needs a value not in the simulator yet Explanation to come
-
--iname needs a value not in the simulator yet Explanation to come
-
--inum needs a value not in the simulator yet Explanation to come
-
--ipath needs a value not in the simulator yet Explanation to come
-
--iwholename needs a value not in the simulator yet Explanation to come
-
--iregex needs a value not in the simulator yet On a real system -regex checks the whole path against a regular expression. Try -path with * and ?.
-
--links needs a value not in the simulator yet Explanation to come
-
--lname needs a value not in the simulator yet Explanation to come
-
--mmin needs a value not in the simulator yet Explanation to come
-
--mtime needs a value not in the simulator yet Explanation to come
-
--name needs a value not in the simulator yet Explanation to come
-
--newer needs a value not in the simulator yet Explanation to come
-
--nouser not in the simulator yet Explanation to come
-
--nogroup not in the simulator yet Explanation to come
-
--path needs a value not in the simulator yet Explanation to come
-
--perm needs a value not in the simulator yet Explanation to come
-
--regex needs a value not in the simulator yet On a real system -regex checks the whole path against a regular expression. Try -path with * and ?.
-
--readable not in the simulator yet Explanation to come
-
--writable not in the simulator yet Explanation to come
-
--executable not in the simulator yet Explanation to come
-
--wholename needs a value not in the simulator yet Explanation to come
-
--size needs a value not in the simulator yet Explanation to come
-
--true not in the simulator yet Explanation to come
-
--type needs a value not in the simulator yet Explanation to come
-
--uid needs a value not in the simulator yet Explanation to come
-
--used needs a value not in the simulator yet Explanation to come
-
--user needs a value not in the simulator yet Explanation to come
-
--xtype needs a value not in the simulator yet Explanation to come
-
--delete not in the simulator yet Explanation to come
-
--print0 not in the simulator yet Explanation to come
-
--printf needs a value not in the simulator yet On a real system -printf prints each match in a format you choose (size, date, permissions).
-
--fprintf needs a value not in the simulator yet On a real system -printf prints each match in a format you choose (size, date, permissions).
-
--print not in the simulator yet Explanation to come
-
--fprint0 needs a value not in the simulator yet Explanation to come
-
--fprint needs a value not in the simulator yet Explanation to come
-
--ls not in the simulator yet On a real system -ls shows each match like ls -dils. Try -exec ls -ld {} +.
-
--fls needs a value not in the simulator yet On a real system -ls shows each match like ls -dils. Try -exec ls -ld {} +.
-
--prune not in the simulator yet Explanation to come
-
--quit not in the simulator yet Explanation to come
-
--exec needs a value not in the simulator yet Explanation to come
-
--execdir needs a value not in the simulator yet On a real system -execdir runs the command inside the directory of the match. Try -exec.
-
--ok needs a value not in the simulator yet Explanation to come
-
--okdir needs a value not in the simulator yet On a real system -execdir runs the command inside the directory of the match. Try -exec.
-
--not not in the simulator yet Explanation to come
-
--a not in the simulator yet Explanation to come
-
--and not in the simulator yet Explanation to come
-
--o not in the simulator yet Explanation to come
-
--or not in the simulator yet Explanation to come
-
--version not in the simulator yet Explanation to come