FIND(1) General Commands Manual FIND(1) NAME find - SYNOPSIS find [path...] [expression] DESCRIPTION GNU find find ( OPERATORS) '' '' find '-' , '(' , ')' , ',' '!' ; '-print'. find 00 EXPRESSIONS (, , )() (side effects, ) . -and . -prune -print OPTIONS -daystart 24(for -amin, -atime, -cmin, -ctime, -mmin, and -mtime) -depth -follow -noleaf -help, --help find -maxdepth levels levels() `-maxdepth 0' -mindepth levels levels()`-mindepth 1' -mount -xdev find -noleaf "2" UNIXCD- ROM,MS-DOSAFS UNIX,, '.' () '..' find ((`leaf')) -version, --version find -xdev TESTS +n n -n n n n -amin n n -anewer file file -follow -anewer () -anewer -follow -atime n n*24 -cmin n n -cnewer file file -follow -cnewer () -cnewer -follow -ctime n n*24 -empty -false false -fstype type type UnixUnixufs, 4.2, 4.3, nfs, tmp, mfs, S51K, S52K. -printf %F -gid n ID n -group gname gname (ID). -ilname pattern -lname -iname pattern -name `fo*' and `F??' `Foo', `FOO', `foo', `fOo' -inum n i n -ipath pattern -path -iregex pattern -regex , -links n n -lname pattern pattern `/' `.' -mmin n n -mtime n n*24 -name pattern ()shellpattern(`*', `?', `[]' ) `.' -prune -path -newer file file -follow -newer () -newer -follow -nouser ID -nogroup ID -path pattern shellpattern`/' `.' find . -path './sr*sc' './src/misc' -prune 'src/emacs' find . -path './src/emacs' -prune -o -print -perm mode mode () Symbolic modes use mode 0 as a point of departure. -perm -mode mode -perm +mode mode -regex pattern pattern `./fubar3' `.*bar.' `.*b.*3'`b.*r3' -size n[bckw] n 512n `b' n `c' (kB) n `k' n `w' indirect blocks -true true -type c c b () c () d p (FIFO) f l s D (Solaris ) -uid n ID n -used n n -user uname uname (ID). -xtype c -type -follow c true -follow c `l' true-xtype -type ACTIONS -exec command ; command0 exec true find `;' `{}' `{}' find `\' escape shell -fls file true -ls -fprint file -fprint file true file find file ``/dev/stdout'' ``/dev/stderr'' -fprint0 file true -print0 -fprint file -fprintf file format true -printf -fprint file -ok command ; -exec (); `y' `Y' command false -print true -print0 truenull find -printf format true format , `\' escape `%' C `printf' -print , -printf escape \a \b \c \f \n \r \t tab \v tab \\ `\' \NNN ASCIINNN() `\' %% `%' %a C `ctime' %Ak k `@' C `strftime' k `strftime' @ Jan. 1, 1970, 00:00 GMT H (00..23) I (01..12) k ( 0..23) l ( 1..12) M (00..59) p AM PM r 12 (hh:mm:ss [AP]M) S (00..61) T 24 (hh:mm:ss) X (H:M:S) Z (EDT) a (Sun..Sat) A (Sunday..Saturday) b (Jan..Dec) B (January..December) c (Sat Nov 04 12:02:33 EST 1989) d (01..31) D (mm/dd/yy) h b j (001..366) m (01..12) U (00..53) w (0..6) W (00..53) x (mm/dd/yy) y (00..99) Y (1970...) %b 512 () %c C `ctime' %Ck k %A %d 0 %f () %F -fstype %g ID %G ID %h () %H %i i (16) %k 1kB () %l () %m (8) %n %p %P %s %t C `ctime' %Tk k %A %u ID %U ID `%' `%' () -prune -depth true; -depth false; -ls true `ls -dils' 1kB POSIXLY_CORRECT 512 OPERATORS ( expr ) ! expr expr falsetrue -not expr ! expr expr1 expr2 () expr1 false expr2 expr1 -a expr2 expr1 expr2 expr1 -and expr2 expr1 expr2 expr1 -o expr2 expr1 true expr2 expr1 -or expr2 expr1 -o expr2 expr1 , expr2 expr1 expr2 expr1 expr2 SEE ALSO locate(1L), locatedb(5L), updatedb(1L), xargs(1L) Finding Files (Info , ) [] [] 11/01/2003 linuxman: http://cmpp.linuxforum.net man man https://github.com/man-pages-zh/manpages- zh FIND(1)