Lines Matching +full:ls +full:- +full:bits
16 .\" Standard for Information Technology -- Portable Operating System
18 .\" Copyright (C) 2001-2004 by the Institute of Electrical and Electronics
53 find \- find files
56 \fB/usr/bin/find\fR [\fB-E\fR] [\fB-H\fR | \fB-L\fR] \fIpath\fR... \fIexpression\fR
61 \fB/usr/xpg4/bin/find\fR [\fB-H\fR | \fB-L\fR] \fIpath\fR... \fIexpression\fR
82 \fB\fB-E\fR\fR
85 Interpret regular expressions followed by \fB-regex\fR and \fB-iregex\fR
92 \fB\fB-H\fR\fR
105 \fB\fB-L\fR\fR
115 Specifying more than one of the mutually-exclusive options \fB-H\fR and
116 \fB-L\fR is not considered an error. The last option specified determines the
161 \fB-\fIn\fR\fR
174 \fB\fB-acl\fR\fR
183 \fB\fB-amin\fR \fIn\fR\fR
192 \fB\fB-atime\fR \fIn\fR\fR
202 \fB\fB-cmin\fR \fIn\fR\fR
211 \fB\fB-cpio\fR \fIdevice\fR\fR
215 (5120-byte records).
221 \fB\fB-ctime\fR \fIn\fR\fR
230 \fB\fB-delete\fR\fR
234 directory. This option implicitly enables \fB-depth\fR and is incompatible
242 \fB\fB-depth\fR\fR
254 \fB\fB-exec\fR \fIcommand\fR\fR
260 \fB-exec\fR is \fB{}\fR and you specify \fB+\fR rather than the semicolon
262 of pathnames. If any invocation of the command returns a non-zero value as exit
263 status, find returns a non-zero exit status.
269 \fB\fB-follow\fR\fR
273 \fIexpression\fR. The behavior is unspecified if \fB-follow\fR is used when the
274 \fBfind\fR command is invoked with either the \fB-H\fR or the \fB-L\fR option.
278 This expression should not be used with the find-type \fBl\fR expression. See
285 \fB\fB-fstype\fR \fItype\fR\fR
294 \fB\fB-group\fR \fIgname\fR\fR
304 \fB\fB-groupacl\fR \fIgname\fR\fR
315 \fB\fB-gsid\fR \fIsid\fR\fR
325 \fB\fB-gsidacl\fR \fIsid\fR
336 \fB\fB-iname\fR \fIpattern\fR\fR
339 Like \fB-name\fR, but the match is case insensitive.
345 \fB\fB-inum\fR \fIn\fR\fR
354 \fB\fB-ipath\fR \fIpattern\fR\fR
357 Like \fB-path\fR, but the match is case insensitive.
363 \fB\fB-iregex\fR \fIpattern\fR\fR
366 Like \fB-regex\fR, but the match is case insensitive.
372 \fB\fB-links\fR \fIn\fR\fR
381 \fB\fB-local\fR\fR
386 type if the \fB/etc/dfs/fstypes\fR file is not present. The \fB-local\fR option
387 descends the hierarchy of non-local directories. See \fBEXAMPLES\fR for an
394 \fB\fB-ls\fR\fR
450 If the file is a symbolic link, the pathname of the linked-to file is printed
451 preceded by `\fB\(->\fR\&'. The format is identical to that of \fBls\fR
452 \fB-gilds\fR (see \fBls\fR(1B)).
454 Formatting is done internally, without executing the \fBls\fR program.
460 \fB\fB-maxdepth\fR \fIn\fR\fR
464 line arguments. If any \fB-maxdepth\fR primary is specified, it
466 evaluated. \fB-maxdepth 0\fR limits the whole search to
473 \fB\fB-mindepth\fR \fIn\fR\fR
477 than \fIn\fR. If any \fB-mindepth\fR primary is specified, it applies to the
479 \fB-mindepth 1\fR processes all but the command line arguments.
485 \fB\fB-mmin\fR \fIn\fR\fR
494 \fB\fB-mount\fR\fR
504 \fB\fB-mtime\fR \fIn\fR\fR
513 \fB\fB-name\fR \fIpattern\fR\fR
531 \fB\fB-ncpio\fR \fIdevice\fR\fR
534 Always true. Writes the current file on \fIdevice\fR in \fBcpio\fR \fB-c\fR
541 \fB\fB-newer\fR \fIfile\fR\fR
551 \fB\fB-nogroup\fR\fR
554 True if the file belongs to non-existing group.
560 \fB\fB-nouser\fR\fR
563 True if the file belongs to non-existing user.
569 \fB\fB-ok\fR \fIcommand\fR\fR
572 Like \fB-exec\fR, except that the generated command line is printed with a
579 \fB\fB-path\fR\fR
582 Like \fB-name\fR, but matches the entire file path and not just basename, and
589 \fB\fB-perm\fR [\fB-\fR]\fImode\fR\fR
592 The \fImode\fR argument is used to represent file mode bits. It is identical in
595 with all file mode bits cleared. An \fIop\fR symbol of:
602 Set the appropriate mode bits in the template
611 Clear the appropriate bits
620 Set the appropriate mode bits, without regard to the contents of the file mode
626 all bits off, there are no symbolic modes that need to use \fB\(mi\fR as the
630 permission bits exactly match the value of the resulting template.
633 if at least all the bits in the resulting template are set in the file
634 permission bits.
640 \fB\fB-perm\fR [\fB-\fR]\fIonum\fR\fR
645 only the bits that are set in \fIonum\fR are compared with the file permission
652 \fB\fB-print\fR\fR
661 \fB\fB-print0\fR\fR
671 \fB\fB-prune\fR\fR
675 structure below the \fIpattern\fR just matched. (See EXAMPLES). If \fB-depth\fR
676 is specified, \fB-prune\fR has no effect.
682 \fB\fB-regex\fR \fIpattern\fR\fB
692 \fB\fB-sidacl\fR \fIsid\fR
702 \fB\fB-size\fR \fIn\fR[\fBc\fR]\fR
712 \fB\fB-type\fR \fIc\fR\fR
724 \fB\fB-user\fR \fIuname\fR\fR
734 \fB\fB-useracl\fR \fIuname\fR\fR
745 \fB\fB-usid\fR \fIsid\fR\fR
755 \fB\fB-usidacl\fR \fIsid\fR
766 \fB\fB-xdev\fR\fR
769 Same as the \fB-mount\fR primary.
775 \fB\fB-xattr\fR\fR
808 \fB3) \fIexpression\fR\fB[\fR\fB-a\fR\fB]\fR \fIexpression\fR\fR
819 \fB4) \fIexpression\fR\fB\fR\fB-o\fR\fIexpression\fR\fR
823 Alternation of primaries (\fB-o\fR is the \fIor\fR operator).
828 When you use \fBfind\fR in conjunction with \fBcpio\fR, if you use the \fB-L\fR
829 option with \fBcpio\fR, you must use the \fB-L\fR option or the \fB-follow\fR
834 If no \fIexpression\fR is present, \fB-print\fR is used as the expression.
836 \fB-exec\fR, \fB-ok\fR, \fB-ls\fR, or \fB-print\fR, the specified expression is
840 (\fIspecified\fR) \fB-print\fR
843 The \fB-user\fR, \fB-group\fR, and \fB-newer\fR primaries each evaluate their
845 \fB-exec\fR or \fB-ok\fR does not affect subsequent primaries on the same file.
859 example% \fBfind . -print\fR
878 example% \fBfind $HOME \e( -name a.out -o -name '*.o' \e) \e
879 -atime +7 -exec rm {} \e;\fR
894 example% \fBfind . -name SCCS -prune -o -print\fR
910 example% \fBfind . -print -name SCCS -prune\fR
919 The following command is basically equivalent to the \fB-nt\fR extension to
925 example$ \fBif [ -n "$(find
926 file1 -prune -newer file2)" ]; then
934 \fBExample 6 \fRSelecting a File Using 24-hour Mode
937 The descriptions of \fB-atime\fR, \fB-ctime\fR, and \fB-mtime\fR use the
938 terminology \fIn\fR ``24-hour periods''. For example, a file accessed at 23:59
944 example% \fBfind . -atime -1 -print\fR
952 The midnight boundary between days has no effect on the 24-hour calculation.
965 example% \fBfind . -perm u=rwx,g=rx,o=rx\fR
977 example% \fBfind . -perm a=rwx,g-w,o-w\fR
992 example% \fBfind . -perm -o+w\fR
998 \fBExample 9 \fRPrinting Local Files without Descending Non-local Directories
1002 example% \fBfind . ! -local -prune -o -print\fR
1013 example% \fBfind . -xattr\fR
1028 Determine the location of the \fIutility_name\fR for the \fB-exec\fR and
1029 \fB-ok\fR primaries.
1037 the behavior of ranges, equivalence classes, and multi-character collating
1129 \fB\fB-cpio\fR \fIdevice\fR\fR
1133 (5120-byte records).
1139 \fB\fB-ncpio\fR \fIdevice\fR\fR
1142 Always true. Writes the current file on \fIdevice\fR in \fBcpio\fR \fB-c\fR
1143 format (5120-byte records).
1148 the \fB-mtime\fR argument \fBbefore\fR the \fB-print\fR argument. Otherwise,
1155 \fB-mount\fR or \fB-xdev\fR is specified in the \fBfind\fR expression.
1158 Using the \fB-L\fR or \fB-follow\fR option is not recommended when descending a
1159 file-system hierarchy that is under the control of other users. In particular,
1160 when using \fB-exec\fR, symbolic links can lead the \fBfind\fR command out of
1161 the hierarchy in which it started. Using \fB-type\fR is not sufficient to
1162 restrict the type of files on which the \fB-exec\fR command operates, because
1163 there is an inherent race condition between the type-check performed by the