Merge commit 'b31320a79e2054c6739b5229259dbf98f3afc547' into merges
[unleashed.git] / share / man / man1 / find.1
blobb0f7df6b2698ce76b5af83fe3c784aa486fe72d6
1 '\" te
2 .\" Copyright 1989 AT&T
3 .\" Copyright (c) 2008, Sun Microsystems, Inc. All Rights Reserved
4 .\" Copyright 2011 Nexenta Systems, Inc. All rights reserved.
5 .\" Copyright (c) 2013 Andrew Stormont.  All rights reserved.
6 .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved
7 .\"
8 .\" Sun Microsystems, Inc. gratefully acknowledges The Open Group for
9 .\" permission to reproduce portions of its copyrighted documentation.
10 .\" Original documentation from The Open Group can be obtained online at
11 .\" http://www.opengroup.org/bookstore/.
12 .\" The Institute of Electrical and Electronics Engineers and The Open Group,
13 .\" have given us permission to reprint portions of their documentation.
14 .\" In the following statement, the phrase "this text" refers to portions of
15 .\" the system documentation. Portions of this text are reprinted and
16 .\" reproduced in electronic form in the Sun OS Reference Manual, from
17 .\" IEEE Std 1003.1, 2004 Edition, Standard for Information Technology --
18 .\" Portable Operating System Interface (POSIX), The Open Group Base
19 .\" Specifications Issue 6, Copyright (C) 2001-2004 by the Institute of
20 .\" Electrical and Electronics Engineers, Inc and The Open Group. In the event
21 .\" of any discrepancy between these versions and the original IEEE and
22 .\" The Open Group Standard, the original IEEE and The Open Group Standard
23 .\" is the referee document. The original Standard can be obtained online
24 .\" at http://www.opengroup.org/unix/online.html.
25 .\" This notice shall appear on any product containing this material.
26 .\" The contents of this file are subject to the terms of the Common Development
27 .\" and Distribution License (the "License").  You may not use this file except
28 .\" in compliance with the License.
29 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or
30 .\" http://www.opensolaris.org/os/licensing.  See the License for the specific
31 .\" language governing permissions and limitations under the License.
32 .\" When distributing Covered Code, include this CDDL HEADER in each file and
33 .\" include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable,
34 .\" add the following below this CDDL HEADER, with the fields enclosed by
35 .\" brackets "[]" replaced with your own identifying information:
36 .\" Portions Copyright [yyyy] [name of copyright owner]
37 .TH FIND 1 "Oct 25, 2017"
38 .SH NAME
39 find \- find files
40 .SH SYNOPSIS
41 .LP
42 .nf
43 \fB/usr/bin/find\fR [\fB-H\fR | \fB-L\fR] \fIpath\fR... \fIexpression\fR
44 .fi
46 .SH DESCRIPTION
47 .sp
48 .LP
49 The \fBfind\fR utility recursively descends the directory hierarchy for each
50 \fIpath\fR seeking files that match a Boolean \fIexpression\fR written in the
51 primaries specified below.
52 .sp
53 .LP
54 \fBfind\fR is able to descend to arbitrary depths in a file hierarchy and does
55 not fail due to path length limitations (unless a \fIpath\fR operand specified
56 by the application exceeds \fIPATH_MAX\fR requirements).
57 .sp
58 .LP
59 \fBfind\fR detects infinite loops; that is, entering a previously visited
60 directory that is an ancestor of the last file encountered.
61 .SH OPTIONS
62 .sp
63 .LP
64 The following options are supported:
65 .sp
66 .ne 2
67 .na
68 \fB\fB-E\fR\fR
69 .ad
70 .RS 6n
71 Interpret regular expressions followed by \fB-regex\fR and \fB-iregex\fR
72 primaries as extended regular expressions.
73 .RE
75 .sp
76 .ne 2
77 .na
78 \fB\fB-H\fR\fR
79 .ad
80 .RS 6n
81 Causes the file information and file type evaluated for each symbolic link
82 encountered on the command line to be those of the file referenced by the link,
83 and not the link itself. If the referenced file does not exist, the file
84 information and type is for the link itself. File information for all symbolic
85 links not on the command line is that of the link itself.
86 .RE
88 .sp
89 .ne 2
90 .na
91 \fB\fB-L\fR\fR
92 .ad
93 .RS 6n
94 Causes the file information and file type evaluated for each symbolic link to
95 be those of the file referenced by the link, and not the link itself. See
96 \fBNOTES\fR.
97 .RE
99 .sp
101 Specifying more than one of the mutually-exclusive options \fB-H\fR and
102 \fB-L\fR is not considered an error. The last option specified determines the
103 behavior of the utility.
104 .SH OPERANDS
107 The following operands are supported:
109 .ne 2
111 \fB\fIpath\fR\fR
113 .RS 14n
114 A pathname of a starting point in the directory hierarchy.
118 .ne 2
120 \fB\fIexpression\fR\fR
122 .RS 14n
123 The first argument that starts with a \fB\(mi\fR, or is a \fB!\fR or a \fB(\fR,
124 and all subsequent arguments are interpreted as an \fIexpression\fR made up of
125 the following primaries and operators. In the descriptions, wherever \fIn\fR is
126 used as a primary argument, it is interpreted as a decimal integer optionally
127 preceded by a plus (\fB+\fR) or minus (\fB\(mi\fR) sign, as follows:
129 .ne 2
131 \fB+\fIn\fR\fR
133 .RS 6n
134 more than \fIn\fR
138 .ne 2
140 \fB\fIn\fR\fR
142 .RS 6n
143 exactly \fIn\fR
147 .ne 2
149 \fB-\fIn\fR\fR
151 .RS 6n
152 less than \fIn\fR
157 .SS "Expressions"
160 Valid expressions are:
162 .ne 2
164 \fB\fB-acl\fR\fR
166 .RS 17n
167 True if the file have additional ACLs defined.
171 .ne 2
173 \fB\fB-amin\fR \fIn\fR\fR
175 .RS 17n
176 File was last accessed \fIn\fR minutes ago.
180 .ne 2
182 \fB\fB-atime\fR \fIn\fR\fR
184 .RS 17n
185 True if the file was accessed \fIn\fR days ago. The access time of directories
186 in \fIpath\fR is changed by \fBfind\fR itself.
190 .ne 2
192 \fB\fB-cmin\fR \fIn\fR\fR
194 .RS 17n
195 File's status was last changed \fIn\fR minutes ago.
199 .ne 2
201 \fB\fB-cpio\fR \fIdevice\fR\fR
203 .RS 17n
204 Always true. Writes the current file on \fIdevice\fR in \fBcpio\fR format
205 (5120-byte records).
209 .ne 2
211 \fB\fB-ctime\fR \fIn\fR\fR
213 .RS 17n
214 True if the file's status was changed \fIn\fR days ago.
218 .ne 2
220 \fB\fB-depth\fR\fR
222 .RS 17n
223 Always true. Causes descent of the directory hierarchy to be done so that all
224 entries in a directory are acted on before the directory itself. This can be
225 useful when \fBfind\fR is used with \fBcpio\fR(1) to transfer files that are
226 contained in directories without write permission.
230 .ne 2
232 \fB\fB-exec\fR \fIcommand\fR\fR
234 .RS 17n
235 True if the executed command returns a zero value as exit status. The end of
236 command must be punctuated by an escaped semicolon (\fB;\fR). A command
237 argument \fB{}\fR is replaced by the current pathname. If the last argument to
238 \fB-exec\fR is \fB{}\fR and you specify \fB+\fR rather than the semicolon
239 (\fB;\fR), the command is invoked fewer times, with \fB{}\fR replaced by groups
240 of pathnames. If any invocation of the command returns a non-zero value as exit
241 status, find returns a non-zero exit status.
245 .ne 2
247 \fB\fB-follow\fR\fR
249 .RS 17n
250 Always true and always evaluated no matter where it appears in
251 \fIexpression\fR. The behavior is unspecified if \fB-follow\fR is used when the
252 \fBfind\fR command is invoked with either the \fB-H\fR or the \fB-L\fR option.
253 Causes symbolic links to be followed. When following symbolic links, \fBfind\fR
254 keeps track of the directories visited so that it can detect infinite loops.
255 For example, such a loop would occur if a symbolic link pointed to an ancestor.
256 This expression should not be used with the find-type \fBl\fR expression. See
257 \fBNOTES\fR.
261 .ne 2
263 \fB\fB-fstype\fR \fItype\fR\fR
265 .RS 17n
266 True if the filesystem to which the file belongs is of type \fItype\fR.
270 .ne 2
272 \fB\fB-group\fR \fIgname\fR\fR
274 .RS 17n
275 True if the file belongs to the group \fIgname\fR. If \fIgname\fR is numeric
276 and there's no such group name, it is taken as a group \fBID\fR.
280 .ne 2
282 \fB\fB-groupacl\fR \fIgname\fR\fR
284 .RS 17n
285 True if the file's ACL contains an entry for the group \fIgname\fR.
286 If \fIgname\fR is numeric and there's no such group name, it is taken
287 as a group \fBID\fR.
291 .ne 2
293 \fB\fB-iname\fR \fIpattern\fR\fR
295 .RS 17n
296 Like \fB-name\fR, but the match is case insensitive.
300 .ne 2
302 \fB\fB-inum\fR \fIn\fR\fR
304 .RS 17n
305 True if the file has inode number \fIn\fR.
309 .ne 2
311 \fB\fB-ipath\fR \fIpattern\fR\fR
313 .RS 17n
314 Like \fB-path\fR, but the match is case insensitive.
318 .ne 2
320 \fB\fB-iregex\fR \fIpattern\fR\fR
322 .RS 17n
323 Like \fB-regex\fR, but the match is case insensitive.
327 .ne 2
329 \fB\fB-links\fR \fIn\fR\fR
331 .RS 17n
332 True if the file has \fIn\fR links.
336 .ne 2
338 \fB\fB-local\fR\fR
340 .RS 17n
341 True if the file system type is not a remote file system type as defined in the
342 \fB/etc/dfs/fstypes\fR file. \fBnfs\fR is used as the default remote filesystem
343 type if the \fB/etc/dfs/fstypes\fR file is not present. The \fB-local\fR option
344 descends the hierarchy of non-local directories. See \fBEXAMPLES\fR for an
345 example of how to search for local files without descending.
349 .ne 2
351 \fB\fB-ls\fR\fR
353 .RS 17n
354 Always true. Prints current pathname together with its associated statistics.
355 These include (respectively):
356 .RS +4
358 .ie t \(bu
359 .el o
360 inode number
362 .RS +4
364 .ie t \(bu
365 .el o
366 size in kilobytes (1024 bytes)
368 .RS +4
370 .ie t \(bu
371 .el o
372 protection mode
374 .RS +4
376 .ie t \(bu
377 .el o
378 number of hard links
380 .RS +4
382 .ie t \(bu
383 .el o
384 user
386 .RS +4
388 .ie t \(bu
389 .el o
390 group
392 .RS +4
394 .ie t \(bu
395 .el o
396 size in bytes
398 .RS +4
400 .ie t \(bu
401 .el o
402 modification time.
404 If the file is a special file, the size field instead contains the major and
405 minor device numbers.
407 If the file is a symbolic link, the pathname of the linked-to file is printed
408 preceded by `\fB\(->\fR\&'. The format is identical to that of \fBls\fR
409 \fB-gilds\fR (see \fBls\fR(1B)).
411 Formatting is done internally, without executing the \fBls\fR program.
415 .ne 2
417 \fB\fB-maxdepth\fR \fIn\fR\fR
419 .RS 17n
420 Always true; descend at most \fIn\fR directory levels below the command
421 line arguments. If any \fB-maxdepth\fR primary is specified, it
422 applies to the entire expression even if it would not normally be
423 evaluated. \fB-maxdepth 0\fR limits the whole search to
424 the command line arguments.
428 .ne 2
430 \fB\fB-mindepth\fR \fIn\fR\fR
432 .RS 17n
433 Always true; do not apply any tests or actions at levels less
434 than \fIn\fR. If any \fB-mindepth\fR primary is specified, it applies to the
435 entire expression even if it would not normally be evaluated.
436 \fB-mindepth 1\fR processes all but the command line arguments.
440 .ne 2
442 \fB\fB-mmin\fR \fIn\fR\fR
444 .RS 17n
445 File's data was last modified \fIn\fR minutes ago.
449 .ne 2
451 \fB\fB-mount\fR\fR
453 .RS 17n
454 Always true. Restricts the search to the file system containing the directory
455 specified. Does not list mount points to other file systems.
459 .ne 2
461 \fB\fB-mtime\fR \fIn\fR\fR
463 .RS 17n
464 True if the file's data was modified \fIn\fR days ago.
468 .ne 2
470 \fB\fB-name\fR \fIpattern\fR\fR
472 .RS 17n
473 True if \fIpattern\fR matches the basename of the current file name. Normal
474 shell file name generation characters (see \fBsh\fR(1)) can be used. A
475 backslash (\fB\|\e\|\fR) is used as an escape character within the pattern. The
476 pattern should be escaped or quoted when \fBfind\fR is invoked from the shell.
478 Wildcard file name generation characters can match file
479 names beginning with '\fB\&.\fR'.
483 .ne 2
485 \fB\fB-ncpio\fR \fIdevice\fR\fR
487 .RS 17n
488 Always true. Writes the current file on \fIdevice\fR in \fBcpio\fR \fB-c\fR
489 format (5120 byte records).
493 .ne 2
495 \fB\fB-newer\fR \fIfile\fR\fR
497 .RS 17n
498 True if the current file has been modified more recently than the argument
499 \fIfile\fR.
503 .ne 2
505 \fB\fB-nogroup\fR\fR
507 .RS 17n
508 True if the file belongs to non-existing group.
512 .ne 2
514 \fB\fB-nouser\fR\fR
516 .RS 17n
517 True if the file belongs to non-existing user.
521 .ne 2
523 \fB\fB-ok\fR \fIcommand\fR\fR
525 .RS 17n
526 Like \fB-exec\fR, except that the generated command line is printed with a
527 question mark first, and is executed only if the response is affirmative.
531 .ne 2
533 \fB\fB-path\fR\fR
535 .RS 17n
536 Like \fB-name\fR, but matches the entire file path and not just basename.
540 .ne 2
542 \fB\fB-perm\fR [\fB-\fR]\fImode\fR\fR
544 .RS 17n
545 The \fImode\fR argument is used to represent file mode bits. It is identical in
546 format to the symbolic mode operand, \fIsymbolic_mode_list\fR, described in
547 \fBchmod\fR(1), and is interpreted as follows. To start, a template is assumed
548 with all file mode bits cleared. An \fIop\fR symbol of:
550 .ne 2
552 \fB\fB+\fR\fR
554 .RS 8n
555 Set the appropriate mode bits in the template
559 .ne 2
561 \fB\fB\(mi\fR\fR
563 .RS 8n
564 Clear the appropriate bits
568 .ne 2
570 \fB\fB=\fR\fR
572 .RS 8n
573 Set the appropriate mode bits, without regard to the contents of the file mode
574 creation mask of the process
577 The \fIop\fR symbol of \fB\(mi\fR cannot be the first character of \fImode\fR,
578 to avoid ambiguity with the optional leading hyphen. Since the initial mode is
579 all bits off, there are no symbolic modes that need to use \fB\(mi\fR as the
580 first character.
582 If the hyphen is omitted, the primary evaluates as true when the file
583 permission bits exactly match the value of the resulting template.
585 Otherwise, if \fImode\fR is prefixed by a hyphen, the primary evaluates as true
586 if at least all the bits in the resulting template are set in the file
587 permission bits.
591 .ne 2
593 \fB\fB-perm\fR [\fB-\fR]\fIonum\fR\fR
595 .RS 17n
596 True if the file permission flags exactly match the octal number \fIonum\fR
597 (see \fBchmod\fR(1)). If \fIonum\fR is prefixed by a minus sign (\fB\(mi\fR),
598 only the bits that are set in \fIonum\fR are compared with the file permission
599 flags, and the expression evaluates true if they match.
603 .ne 2
605 \fB\fB-print\fR\fR
607 .RS 17n
608 Always true. Causes the current pathname to be printed.
612 .ne 2
614 \fB\fB-print0\fR\fR
616 .RS 17n
617 Always true. Causes the current pathname to be printed, terminated by an ASCII
618 NUL character (character code 0) instead of a newline.
622 .ne 2
624 \fB\fB-prune\fR\fR
626 .RS 17n
627 Always yields true. Does not examine any directories or files in the directory
628 structure below the \fIpattern\fR just matched. (See EXAMPLES). If \fB-depth\fR
629 is specified, \fB-prune\fR has no effect.
633 .ne 2
635 \fB\fB-regex\fR \fIpattern\fR\fB
637 .RS 17n
638 True if the full path of the file matches \fIpattern\fR using regular
639 expressions.
643 .ne 2
645 \fB\fB-size\fR \fIn\fR[\fBc\fR]\fR
647 .RS 17n
648 True if the file is \fIn\fR blocks long (512 bytes per block). If \fIn\fR is
649 followed by a \fBc\fR, the size is in bytes.
653 .ne 2
655 \fB\fB-type\fR \fIc\fR\fR
657 .RS 17n
658 True if the type of the file is \fIc\fR, where \fIc\fR is \fBb\fR, \fBc\fR,
659 \fBd\fR, \fBD\fR, \fBf\fR, \fBl\fR, \fBp\fR, or \fBs\fR for block special file,
660 character special file, directory, door, plain file, symbolic link, fifo (named
661 pipe), or socket, respectively.
665 .ne 2
667 \fB\fB-user\fR \fIuname\fR\fR
669 .RS 17n
670 True if the file belongs to the user \fIuname\fR. If \fIuname\fR is numeric and
671 there's no such user name, it is taken as a user \fBID\fR.
675 .ne 2
677 \fB\fB-useracl\fR \fIuname\fR\fR
679 .RS 17n
680 True if the file's ACL contains an entry for the user \fIuname\fR.
681 If \fIuname\fR is numeric and there's no such user name, it is
682 taken as a user \fBID\fR.
686 .ne 2
688 \fB\fB-xdev\fR\fR
690 .RS 17n
691 Same as the \fB-mount\fR primary.
695 .ne 2
697 \fB\fB-xattr\fR\fR
699 .RS 17n
700 True if the file has extended attributes.
703 .SS "Complex Expressions"
706 The primaries can be combined using the following operators (in order of
707 decreasing precedence):
709 .ne 2
711 \fB1)\fB(\fR\fIexpression\fR\fB)\fR\fR
713 .sp .6
714 .RS 4n
715 True if the parenthesized expression is true (parentheses are special to the
716 shell and must be escaped).
720 .ne 2
722 \fB2)\fB!\fR\fIexpression\fR\fR
724 .sp .6
725 .RS 4n
726 The negation of a primary (\fB!\fR is the unary \fInot\fR operator).
730 .ne 2
732 \fB3) \fIexpression\fR\fB[\fR\fB-a\fR\fB]\fR \fIexpression\fR\fR
734 .sp .6
735 .RS 4n
736 Concatenation of primaries (the \fIand\fR operation is implied by the
737 juxtaposition of two primaries).
741 .ne 2
743 \fB4) \fIexpression\fR\fB\fR\fB-o\fR\fIexpression\fR\fR
745 .sp .6
746 .RS 4n
747 Alternation of primaries (\fB-o\fR is the \fIor\fR operator).
752 When you use \fBfind\fR in conjunction with \fBcpio\fR, if you use the \fB-L\fR
753 option with \fBcpio\fR, you must use the \fB-L\fR option or the \fB-follow\fR
754 primitive with \fBfind\fR and vice versa. Otherwise the results are
755 unspecified.
758 If no \fIexpression\fR is present, \fB-print\fR is used as the expression.
759 Otherwise, if the specified expression does not contain any of the primaries
760 \fB-exec\fR, \fB-ok\fR, \fB-ls\fR, or \fB-print\fR, the specified expression is
761 effectively replaced by:
764 (\fIspecified\fR) \fB-print\fR
767 The \fB-user\fR, \fB-group\fR, and \fB-newer\fR primaries each evaluate their
768 respective arguments only once. Invocation of \fIcommand\fR specified by
769 \fB-exec\fR or \fB-ok\fR does not affect subsequent primaries on the same file.
770 .SH USAGE
773 See \fBlargefile\fR(5) for the description of the behavior of \fBfind\fR when
774 encountering files greater than or equal to 2 Gbyte (2^31 bytes).
775 .SH EXAMPLES
777 \fBExample 1 \fRWriting Out the Hierarchy Directory
780 The following commands are equivalent:
783 .in +2
785 example% \fBfind .\fR
786 example% \fBfind . -print\fR
788 .in -2
793 They both write out the entire directory hierarchy from the current directory.
796 \fBExample 2 \fRRemoving Files
799 The following comand removes all files in your home directory named \fBa.out\fR
800 or \fB*.o\fR that have not been accessed for a week:
803 .in +2
805 example% \fBfind $HOME \e( -name a.out -o -name '*.o' \e) \e
806        -atime +7 -exec rm {} \e;\fR
808 .in -2
812 \fBExample 3 \fRPrinting All File Names But Skipping SCCS Directories
815 The following command recursively print all file names in the current directory
816 and below, but skipping \fBSCCS\fR directories:
819 .in +2
821 example% \fBfind . -name SCCS -prune -o -print\fR
823 .in -2
827 \fBExample 4 \fRPrinting all file names and the SCCS directory name
830 Recursively print all file names in the current directory and below, skipping
831 the contents of \fBSCCS\fR directories, but printing out the \fBSCCS\fR
832 directory name:
835 .in +2
837 example% \fBfind . -print -name SCCS -prune\fR
839 .in -2
843 \fBExample 5 \fRTesting for the Newer File
846 The following command is basically equivalent to the \fB-nt\fR extension to
847 \fBtest\fR(1):
850 .in +2
852 example$ \fBif [ -n "$(find
853 file1 -prune -newer file2)" ]; then
855 printf %s\e\en "file1 is newer than file2"\fR
857 .in -2
861 \fBExample 6 \fRSelecting a File Using 24-hour Mode
864 The descriptions of \fB-atime\fR, \fB-ctime\fR, and \fB-mtime\fR use the
865 terminology \fIn\fR ``24-hour periods''. For example, a file accessed at 23:59
866 is selected by:
869 .in +2
871 example% \fBfind . -atime -1 -print\fR
873 .in -2
878 at 00:01 the next day (less than 24 hours later, not more than one day ago).
879 The midnight boundary between days has no effect on the 24-hour calculation.
882 \fBExample 7 \fRPrinting Files Matching a User's Permission Mode
885 The following command recursively print all file names whose permission mode
886 exactly matches read, write, and execute access for user, and read and execute
887 access for group and other:
890 .in +2
892 example% \fBfind . -perm u=rwx,g=rx,o=rx\fR
894 .in -2
899 The above could alternatively be specified as follows:
902 .in +2
904 example% \fBfind . -perm a=rwx,g-w,o-w\fR
906 .in -2
910 \fBExample 8 \fRPrinting Files with Write Access for \fBother\fR
913 The following command recursively print all file names whose permission
914 includes, but is not limited to, write access for other:
917 .in +2
919 example% \fBfind . -perm -o+w\fR
921 .in -2
925 \fBExample 9 \fRPrinting Local Files without Descending Non-local Directories
927 .in +2
929 example% \fBfind . ! -local -prune -o -print\fR
931 .in -2
935 \fBExample 10 \fRPrinting the Files in the Name Space Possessing Extended
936 Attributes
938 .in +2
940 example% \fBfind . -xattr\fR
942 .in -2
945 .SH ENVIRONMENT VARIABLES
948 See \fBenviron\fR(5) for descriptions of the following environment variables
949 that affect the execution of \fBfind\fR: \fBLANG\fR, \fBLC_ALL\fR,
950 \fBLC_COLLATE\fR, \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR.
952 .ne 2
954 \fB\fBPATH\fR\fR
956 .RS 8n
957 Determine the location of the \fIutility_name\fR for the \fB-exec\fR and
958 \fB-ok\fR primaries.
963 Affirmative responses are processed using the extended regular expression
964 defined for the \fByesexpr\fR keyword in the \fBLC_MESSAGES\fR category of the
965 user's locale. The locale specified in the \fBLC_COLLATE\fR category defines
966 the behavior of ranges, equivalence classes, and multi-character collating
967 elements used in the expression defined for \fByesexpr\fR. The locale specified
968 in \fBLC_CTYPE\fR determines the locale for interpretation of sequences of
969 bytes of text data a characters, the behavior of character classes used in the
970 expression defined for the \fByesexpr\fR. See \fBlocale\fR(5).
971 .SH EXIT STATUS
974 The following exit values are returned:
976 .ne 2
978 \fB\fB0\fR\fR
980 .RS 6n
981 All \fIpath\fR operands were traversed successfully.
985 .ne 2
987 \fB\fB>0\fR\fR
989 .RS 6n
990 An error occurred.
993 .SH FILES
995 .ne 2
997 \fB\fB/etc/passwd\fR\fR
999 .RS 20n
1000 Password file
1004 .ne 2
1006 \fB\fB/etc/group\fR\fR
1008 .RS 20n
1009 Group file
1013 .ne 2
1015 \fB\fB/etc/dfs/fstypes\fR\fR
1017 .RS 20n
1018 File that registers distributed file system packages
1021 .SH ATTRIBUTES
1024 See \fBattributes\fR(5) for descriptions of the following attributes:
1029 box;
1030 c | c
1031 l | l .
1032 ATTRIBUTE TYPE  ATTRIBUTE VALUE
1034 CSI     Enabled
1036 Interface Stability     Committed
1038 Standard        See \fBstandards\fR(5).
1041 .SH SEE ALSO
1044 \fBchmod\fR(1), \fBcpio\fR(1), \fBsh\fR(1), \fBtest\fR(1), \fBls\fR(1B),
1045 \fBacl\fR(5), \fBregex\fR(5), \fBstat\fR(2), \fBumask\fR(2),
1046 \fBattributes\fR(5), \fBenviron\fR(5), \fBfsattr\fR(5), \fBlargefile\fR(5),
1047 \fBlocale\fR(5), \fBstandards\fR(5)
1048 .SH WARNINGS
1051 The following options are obsolete and will not be supported in future
1052 releases:
1054 .ne 2
1056 \fB\fB-cpio\fR \fIdevice\fR\fR
1058 .RS 17n
1059 Always true. Writes the current file on \fIdevice\fR in \fBcpio\fR format
1060 (5120-byte records).
1064 .ne 2
1066 \fB\fB-ncpio\fR \fIdevice\fR\fR
1068 .RS 17n
1069 Always true. Writes the current file on \fIdevice\fR in \fBcpio\fR \fB-c\fR
1070 format (5120-byte records).
1073 .SH NOTES
1076 When using \fBfind\fR to determine files modified within a range of time, use
1077 the \fB-mtime\fR argument \fBbefore\fR the \fB-print\fR argument. Otherwise,
1078 \fBfind\fR gives all files.
1081 Some files that might be under the Solaris root file system are actually mount
1082 points for virtual file systems, such as \fBmntfs\fR or \fBnamefs\fR. When
1083 comparing against a \fBufs\fR file system, such files are not selected if
1084 \fB-mount\fR or \fB-xdev\fR is specified in the \fBfind\fR expression.
1087 Using the \fB-L\fR or \fB-follow\fR option is not recommended when descending a
1088 file-system hierarchy that is under the control of other users. In particular,
1089 when using \fB-exec\fR, symbolic links can lead the \fBfind\fR command out of
1090 the hierarchy in which it started. Using \fB-type\fR is not sufficient to
1091 restrict the type of files on which the \fB-exec\fR command operates, because
1092 there is an inherent race condition between the type-check performed by the
1093 \fBfind\fR command and the time the executed command operates on the file
1094 argument.