Path: blob/main/documentation/manual-pages/ru/man1/find.1
18093 views
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
.\" 1. Redistributions of source code must retain the above copyright
.\" notice, this list of conditions and the following disclaimer.
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
.\"
.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)find.1 8.7 (Berkeley) 5/9/95
.\" %FreeBSD: src/usr.bin/find/find.1,v 1.82 2007/02/28 10:19:25 ru Exp %
.\" $FreeBSDru: frdp/doc/ru_RU.KOI8-R/man/man1/find.1,v 1.4 2007/11/20 13:50:08 ru Exp $
.\" $FreeBSD$
.\"
.Dd 13 ������� 2006
.Dt FIND 1
.Os
.Sh ��������
.Nm find
.Nd ����� �������� ������
.Sh ���������
.Nm
.Op Fl H | Fl L | Fl P
.Op Fl EXdsx
.Op Fl f Ar ����
.Ar ���� ...
.Ar ���������
.Nm
.Op Fl H | Fl L | Fl P
.Op Fl EXdsx
.Fl f Ar ����
.Op Ar ���� ...
.Ar ���������
.Sh ��������
�������
.Nm
���������� ���������� �� ������ ��������� ������� ����, ����������
�����������
.Ar ���� ,
��������
.Ar ���������
(��������� �� ������������� ����
.Dq ����������
�
.Dq ��������� )
��� ������� ����� � ������.
.Pp
������� ��������� �����:
.Bl -tag -width indent
.It Fl E
���������������� ���������� ��������� � ����������
.Ic -regex
�
.Ic -iregex
��� ����������� (�����������) ���������� ��������� ������ �������
���������� ��������� (BRE).
�������� �����������
.Xr re_format 7
��������� ��������� ��� �������.
.It Fl H
���������� ���������� � ����� � ��� ���� (��.\&
.Xr stat 2 )
��� ������, �� ������� ��������� �������� � ��������� ������ �������������
������, � �� ��� ����� ������.
���� ����, �� ������� ��������� ������, �� ����������, ���������� �
����� � ��� ���� ����� ���������� ��� ����� ������.
���������� � ������ ��� ������������� ������ �� �� ��������� ������ �����
������������ ��� ����� ������.
.It Fl L
���������� ���������� � ����� � ��� ���� (��.\&
.Xr stat 2 )
��� ������, �� ������� ��������� ������������� ������, � �� ���
����� ������.
���� ����, �� ������� ��������� ������, �� ����������, ���������� �
����� � ��� ���� ����� ���������� ��� ����� ������.
.Pp
��� ����� ������������ ����������� ���������
.Ic -follow .
.It Fl P
���������� ���������� � ����� � ��� ���� (��.\&
.Xr stat 2 )
��� ������ ������������� ������ � ����� ������.
��� ��������� �� ���������.
.It Fl X
��������� ���������� �������������
.Nm
��������� �
.Xr xargs 1 .
���� ��� ����� �������� ����� �� ��������-������������, ������������
.Xr xargs 1 ,
������� ��������������� ��������� � ����������� ���� ������
� ���������� ����.
�������-����������� �������� � ���� ���������
.Pq Dq Li " ' "
� �������
.Pq Dq Li " \*q "
�������, �������� ����� �����
.Pq Dq Li \e ,
������, ��������� � ������ �������� ������.
.Pp
������ �� ������ ������������ ��������
.Fl print0
��������� �
.Dq Nm xargs Fl 0
��� ����������� ������������.
.It Fl d
���������
.Nm
����������� ����� ������� � �������, �.�.\& ��������
���������� � ����-�������, � ��� �������� ��������
�������������� ����� ����� ���������.
�� ���������,
.Nm
�������� �������� � ����-�������, �.�.\& ����� �� ����������.
������� ��������, ��� ���� ����� �� ���������
.Em ��
�������� ������� ������� � ������.
.Pp
��� ����� ������������ ���������
.Ic -depth
��
.St -p1003.1-2001 .
�����
.Fl d
����� ���� ��������, �����
.Nm
������������ ��������� �
.Xr cpio 1
��� ��������� ������ � ��������� � ���������� ������� �������.
��� ������������ ��� ����� �� ������, ���� �� ��������� ����� �
�������, a �����, � ��������� �������, ������������� ����� ������� ��������.
.It Fl f
�������
.Nm
�������� �������� ��� ������.
�������� �������� ����� ����� ���� ������� ��� �������� ���������������
������ �� �������.
.It Fl s
���������
.Nm
�������� �������� �������� � ������������������ �������, �.�.\&
� ���������� ������� � ������ ��������.
����������:
.Ql find -s
�
.Ql "find | sort"
����� ������ ������ ����������.
.It Fl x
���������
.Nm
���������� � ��������, ������� ����� ����������, �������� �� ��������
� �����, � �������� ������� �����.
.Pp
��� ����� ������������ ����������� ���������
.Ic -xdev .
.El
.Sh ���������
.Bl -tag -width indent
.It Ic -Bmin Ar n
�������, ���� ������� ����� �������� �������� ���������� �����������
(inode) ����� � �������� �������
.Nm ,
�����̣���� �� ��������� ������ ������, �����
.Ar n
�����.
.It Ic -Bnewer Ar ����
�� ��, ��� �
.Ic -newerBm .
.It Ic -Btime Ar n Ns Op Cm smhdw
���� ������� ������� �� �������, �� ���� �������� �������, ���� �������
����� �������� �������� ���������� ����������� (inode) �����
� �������� �������
.Nm ,
�����̣���� �� ���������� ������� 24-�������� �������, ����������
.Ar n
24-������� ��������.
.Pp
���� ������� ������� �������, �� ���� �������� �������, ���� ������� �����
�������� �������� ���������� ����������� (inode) ����� �
�������� �������
.Nm
� �������� �����
.Ar n
������.
���������� � �������� ���������
.Ic -atime
��� ���������� � �������������� �������� �������.
.It Ic -acl
����� ���� ����������� ��������� � ������� ����������� ��� ������
������ � ������������ ACL.
���������� �
.Xr acl 3
��� ����� ��������� ����������.
.It Ic -amin Ar n
�������, ���� ������� ����� �������� ���������� ������� � �����
� �������� �������
.Nm ,
�����̣���� �� ��������� ������ ������, ����������
.Ar n
�����.
.It Ic -anewer Ar ����
�� ��, ��� �
.Ic -neweram .
.It Ic -atime Ar n Ns Op Cm smhdw
���� ������� ������� �� �������, �� ���� �������� �������, ���� �������
����� �������� ���������� ������� � ����� � �������� �������
.Nm ,
�����̣���� �� ���������� ������� 24-�������� �������, ����������
.Ar n
24-������� ��������.
.Pp
���� ������� ������� �������, �� ���� �������� �������, ���� �������
����� �������� ���������� ������� � ����� � �������� �������
.Nm
� �������� �����
.Ar n
������.
���������� ������� �������:
.Pp
.Bl -tag -width indent -compact
.It Cm s
�������
.It Cm m
������ (60 ������)
.It Cm h
��� (60 �����)
.It Cm d
���� (24 ����)
.It Cm w
������ (7 ����)
.El
.Pp
� ����� ���������
.Ic -atime
����� ���� �������������� ������������ ������� �������,
��������,
.Dq Li "-atime -1h30m" .
������� ������� ������ ����� ����� ������� ������ � ��������� � �������������
.Cm +
���
.Cm - .
.It Ic -cmin Ar n
�������, ���� ������� ����� �������� ���������� ��������� ���������
���������� � ����� � �������� �������
.Nm ,
�����̣���� �� ��������� ������ ������, �����
.Ar n
�����.
.It Ic -cnewer Ar ����
�� ��, ��� �
.Ic -newercm .
.It Ic -ctime Ar n Ns Op Cm smhdw
���� ������� ������� �� �������, �� ���� �������� �������, ���� �������
����� �������� ���������� ��������� ��������� ���������� � ����� �
� �������� �������
.Nm ,
�����̣���� �� ���������� ������� 24-�������� �������, ����������
.Ar n
24-������� ��������.
.Pp
���� ������� ������� �������, �� ���� �������� �������, ���� ������� �����
�������� ���������� ��������� ��������� ���������� � ����� �
�������� �������
.Nm
� �������� �����
.Ar n
������.
���������� � �������� ���������
.Ic -atime
��� ���������� � �������������� �������� �������.
.It Ic -delete
������� ��������� ����� �/��� ��������.
������ �������.
����������� �� �������� �������� ��������,
�� ���� ������������ �������
.Nm
���� �� ������.
������ �� ����������� ������������,
.Nm
�� ����� �������� ������� ����� � ��������
.Dq Pa /
� ���� ������������
.Dq Pa \&. .
��� ����� ������������� ����� ������� � �������.
.It Ic -depth
������ �������;
�� ��, ��� � �����
.Fl d .
.It Ic -depth Ar n
�������, ���� ������� ����� ������������ ����� ������ ������ �����
.Ar n .
.It Ic -empty
�������, ���� ������� ���� ��� ������� �����.
.It Ic -exec Ar ���_��������� Oo Ar �������� ... Oc Li \&;
�������, ���� ��������� � ������
.Ar ���_���������
���������� ������� �������� � �������� ������� ����������.
��������� ����� ���� �������� �������������� ���������.
��������� ������ ����������� ������ � �������
.Pq Dq Li \&; .
���� �� ����������
.Nm
�� ��������� �������� (shell), ��� ����� ������������� ������������
����� � �������, ��������� � ��������� ������ ��������� �������� �����
���������� ţ ��� ����������� ��������.
���� ���-���� � ����� ��������� ��� � ���������� ���������� ������
.Dq Li {} ,
�� ��� ���������� �� ���� �������� �����.
��������� ����� �������� �� ��������, � ������� ��� �������
.Nm .
���������
.Ar ���_���������
�
.Ar ��������
�� ���������� ����������� ��������� �������� � �����������
��������� ��������.
.It Ic -exec Ar ���_��������� Oo Ar �������� ... Oc Li {} +
�� ��, ��� �
.Ic -exec ,
�� ����������� ����, ���
.Dq Li {}
���������� ����������� ��������� ����������� ����� ��� ������ �������
�������.
��� ��������� ���������� �������� �
.Xr xargs 1 .
.It Ic -execdir Ar ���_��������� Oo Ar �������� ... Oc Li \&;
��������
.Ic -execdir
��������� ���������
.Ic -exec
�� ����������� ����, ��� ��������� � ������
.Ar ���_���������
����� �������� �� ��������, ����������� ������� ����.
��� �����, �������������� ������ ������
.Dq Li {} ,
�� �������� ���� � ����.
.It Ic -flags Oo Cm - Ns | Ns Cm + Oc Ns Ar flags , Ns Ar notflags
����� �������� ��������� ������������� �ͣ� (��.\&
.Xr chflags 1 ) .
� ������ � ���������
.Qq Li no
(�� �����������
.Qq Li nodump )
�������, ��� ���
.Ar notflags
(��������� ������).
�����������, ��� ����� � ������
.Ar flags
�����������, � ����� � ������
.Ar notflags
��������.
��������, ��� ��� ���������� �� ���������
.Ic -perm ,
������������ ������������ ������� ���� �� ����,
������� �����������.
.Pp
���� ������ ������������ �����
.Pq Dq Li - ,
�� ���� �������� ����� ��������, ���� ����� ������ �����
����������� �� ������� ���� ��� ���� �� ������
.Ar flags
� �� ���������� �� ���� ��� �� ������
.Ar notflags .
���� ������ ������������ ����
.Pq Dq Li + ,
�� ���� �������� ����� ��������, ���� ����� ������ �����
���������� ����� �� ����� ������
.Ar flags ,
��� �� ���������� ����� �� ����� ������
.Ar notflags .
� ��������� ������, ���� �������� ����� ��������,
���� ���� � ������
.Ar flags
� �������� ������������� ������ �����,
� �� ���� �� ����� ������
.Ar flags
�� ������ � ������
.Ar notflags .
.It Ic -fstype Ar ���
�������, ���� ���� ���������� � �������� ������� ����
.Ar ��� .
��� ��������� ��������� � ������� ����� �������� ������ �����
��������������� ��������
.Xr sysctl 8 :
.Pp
.Dl "sysctl vfs"
.Pp
����� ����, ������� ��� ������-����,
.Dq Li local
�
.Dq Li rdonly .
������ ������ ����� �������� �������, ��������� �������������� ��
������, ��� �����������
.Nm ,
� ������ ���������� ����� �������� �������, �������������� ������ ��� ������.
.It Ic -group Ar ���_������
�������, ���� ���� ����������� ������ � ������
.Ar ���_������ .
���� ��������
.Ar ���_������
����� � �������� ����, � �� ���������� ������ ����� ������, ��
��������
.Ar ���_������
���������� ��� ������������� ������ (group ID).
.It Ic -iname Ar ������
�������
.Ic -name ,
�� ��������� �� ��������� �������.
.It Ic -inum Ar �����
�������, ���� ����� ���������� ����������� (inode) ����� �����
.Ar ����� .
.It Ic -ipath Ar ������
�������
.Ic -path ,
�� ��������� �� ��������� �������.
.It Ic -iregex Ar ������
�������
.Ic -regex ,
�� ��������� �� ��������� �������.
.It Ic -links Ar n
�������, ���� ���� �����
.Ar n
֣����� ������.
.It Ic -ls
���� �������� ������ �������.
��� �������� ����� � ����������� ����� ������� ��������� ����������:
����� ���������� ����������� (inode), ������ � 512-������� ������, �����
������� � �����, ����� ֣����� ������ (hard links), ��������, ������, ������
� ������, ����� ���������� ��������� � ����.
���� ���� ������������ ����� ����������� ���� �������� ��� �����������
����������,
������ ������� ��������� ������� (major) � ������� (minor) ������ ����������.
���� ���� �������� ������������� �������, �� ����� �����
.Dq Li ->
����� ����� ������� ���� � ������������ �����.
���� ������ ��������� ������������� �
.Bk -words
.Dq Nm ls Fl dgils .
.Ek
.It Ic -maxdepth Ar n
������ �������; ���������� ���������� �� ����� ��� ��
.Ar n
������� ��������� ���� ���������� ��������� ������.
���� ������������ ��������
.Ic -maxdepth ,
�� ����������� �� ����� ���������, ���� ���� � ���������� ��������
�� �� �� ����������.
.Dq Ic -maxdepth Li 0
������������ ���� ����� ������������� ����������� ��������� ������.
.It Ic -mindepth Ar n
������ �������; �� ��������� ����� ����� ��� �������� �� ������� ������
.Ar n .
���� ������������ ��������
.Ic -mindepth ,
�� ����������� �� ����� ���������, ���� ���� � ���������� ��������
�� �� �� ����������.
.Dq Ic -mindepth Li 1
������������ �ӣ, ����� ���������� ��������� ������.
.It Ic -mmin Ar n
�������, ���� ������� ����� �������� ���������� ��������� �����
� �������� �������
.Nm ,
�����̣���� �� ��������� ������ ������, �����
.Ar n
�����.
.It Ic -mnewer Ar ����
�� ��, ��� �
.Ic -newer .
.It Ic -mtime Ar n Ns Op Cm smhdw
���� ������� ������� �� �������, �� ���� �������� �������, ���� �������
����� �������� ���������� ��������� ����� � �������� �������
.Nm ,
�����̣���� �� ���������� ������� 24-�������� �������, ����������
.Ar n
24-������� ��������.
.Pp
���� ������� ������� �������, �� ���� �������� �������, ���� ������� �����
�������� ���������� ��������� ����� � �������� �������
.Nm
� �������� �����
.Ar n
������.
���������� � �������� ���������
.Ic -atime
��� ���������� � �������������� �������� �������.
.It Ic -name Ar ������
�������, ���� ��������� ��������� ���� ����� (��� ���) ��������� ���
.Ar ������ .
� ������� ����� ���� ������������ ����������� ��������� �������
��������� ��������
.Dq ( Li \&[ ,
.Dq Li \&] ,
.Dq Li * ,
�
.Dq Li \&? ) .
��� ������� ����� ���� ������ ��� �������� �� ���������� ����� �������
� ������� ������������� �� �������� �������� ����� �����
.Pq Dq Li \e .
.It Ic -newer Ar ����
�������, ���� ������� ���� ����� ����� ������� ����� ����������
���������, ���
.Ar ���� .
.It Ic -newer Ns Ar X Ns Ar Y Ar ����
�������, ���� ������� ���� ����� ����� ������� ����� ���������� �������
.Pq Ar X Ns = Ns Cm a ,
����� �������� ���������� ����������� (inode), �.�.\& ������ �����
.Pq Ar X Ns = Ns Cm B ,
����� ���������� ��������� ���������� �����������
.Pq Ar X Ns = Ns Cm c
��� ����� ���������� ��������� �����
.Pq Ar X Ns = Ns Cm m ,
������ ����� ���������� �������
.Pq Ar Y Ns = Ns Cm a ,
����� �������� ���������� �����������
.Pq Ar Y Ns = Ns Cm B ,
����� ��������� ���������� �����������
.Pq Ar Y Ns = Ns Cm c
��� ����� ���������
.Pq Ar Y Ns = Ns Cm m
�����
.Ar ���� .
����� ����, ����
.Ar Y Ns = Ns Cm t ,
�� ��������
.Ar ����
����� ��������������� �� ��� ����, � ��� ���������������� ��������
���� � �����, ��������
.Xr cvs 1 .
����� ��������, ��� �������������
.Ic -newermm
������������ �������������
.Ic -newer .
.It Ic -nogroup
�������, ���� ���� ����������� ����������� ������.
.It Ic -nouser
�������, ���� ���� ����������� ������������ ������������.
.It Ic -ok Ar ���_��������� Oo Ar �������� ... Oc Li \&;
��������
.Ic -ok
��������� ���������
.Ic -exec ,
�� ����������� ����, ���
.Nm
�������� � ������������ ������������� �� ���������� ��������� � ������
.Ar ���_���������
������� ��������� �� �������� � ��������� ������.
���� ����� �� ��� ��������������
.Ql ( y
� ������ (locale)
.Dq Li POSIX ) ,
������� �� �����������, � �������� ���������
.Ic -ok
����� ������.
.It Ic -okdir Ar ���_��������� Oo Ar �������� ... Oc Li \&;
��������
.Ic -okdir
��������� ���������
.Ic -execdir ,
� ��� �� �����������, ��� ���� ������� ��� ���������
.Ic -ok .
.It Ic -path Ar ������
�������, ���� ��������������� ���� ��������� ���
.Ar ������ .
� �������
����� ������������ ����������� ��������� ������� ��������� ��������
.Dq ( Li \&[ ,
.Dq Li \&] ,
.Dq Li * ,
�
.Dq Li \&? ) .
��� ������� ����� ���� ������ ��� �������� �� ���������� ����� �������
� ������� ������������� �� �������� �������� ����� �����
.Pq Dq Li \e .
������ ����� �����
.Pq Dq Li /
��������������� ��� ������� ������ � �� ������� ������ ��������
��� ����������.
.It Ic -perm Oo Cm - Ns | Ns Cm + Oc Ns Ar �����
����� ������� � ���������
.Ar �����
����� ���� ������ ���� ������������ (��.\&
.Xr chmod 1 ) ,
���� ������������ ������.
����
.Ar �����
����� ������������, ��������� ��������� ���������� ����, �
.Ar �����
������������� ��� ���������� ����� ��� �ޣ�� ����� �������� ������
��������.
����
.Ar �����
����� ������������ ������, �� ������ ���� 07777
.Pq Dv S_ISUID | S_ISGID | S_ISTXT | S_IRWXU | S_IRWXG | S_IRWXO
��������� � ��������� � ������� ������� �����.
���� ����� ����������
.Ar �����
������ �����
.Pq Dq Li - ,
�� ���� �������� ����� ��������, ���� �� ������� ���� ��� ���� � ���������
.Ar �����
����������� � ������ ������� �����.
���� ����� ����������
.Ar �����
������ ����
.Pq Dq Li + ,
�� ���� �������� ����� ��������, ���� ����� �� ����� � ���������
.Ar �����
���������� � ������ ������� �����.
� ��������� ������, ���� �������� ����� �������� ������ ���
������ ���������� ����� � ���������
.Ar �����
� ������� ������� �������� �����.
�������� ��������, ��� �����
.Pq Dq Li -
�� ����� ���� ������ �������� ��� ������������� ������� ����.
.It Ic -print
���� �������� ������ �������.
�� ������� ���� �������� ����� � ����������� �����.
���� �� ������ �� ���� �� ����������
.Ic -exec , -ls , -print0
���
.Ic -ok ,
�� �������� ��������� ���������� ����� �������� ��
.Cm \&( Ar "�������� ���������" Cm \&) Ic -print .
.It Ic -print0
���� �������� ������ �������.
�� ������� ���� �������� ����� � ����������� �����,
� ������ �� ��� ������
.Tn ASCII
.Dv NUL
(������ � ����� 0).
.It Ic -prune
���� �������� ������ �������.
�� ����������
.Nm
�� ���������� � ������� ����.
���������� ��������, ��� ��������
.Ic -prune
�� ��������� ��� �������� �����
.Fl d .
.It Ic -regex Ar ������
�������, ���� ������ ���� ����� ��������� ��� ���������� ���������
.Ar ������ .
��� ������� �����, ����������
.Dq Pa ./foo/xyzzy ,
����� ������������ ���������� ���������
.Dq Li ".*/[xyz]*"
���
.Dq Li ".*/foo/.*" ,
�� ��
.Dq Li xyzzy
� ��
.Dq Li /foo/ .
.It Ic -size Ar n Ns Op Cm ckMGTP
�������, ���� ������ ����� � 512-������� ������, ���
���������� �����, �����
.Ar n .
���� ��
.Ar n
�������
.Cm c ,
�� �������� ����� ��������, ���� ������ ����� �����
.Ar n
���� (��������).
����������, ���� ��
.Ar n
������� ����� ���������, ����� ������ ����� ������������ �
.Ar n ,
����������� �� ���� �� ���������:
.Pp
.Bl -tag -width indent -compact
.It Cm k
�������� (1024 �����)
.It Cm M
�������� (1024 ���������)
.It Cm G
�������� (1024 ���������)
.It Cm T
�������� (1024 ���������)
.It Cm P
�������� (1024 ���������)
.El
.It Ic -type Ar ���
�������, ���� ����� �������� ����� ��������
.Ar ��� .
��������� ���� ������:
.Pp
.Bl -tag -width indent -compact
.It Cm b
������� �����������
.It Cm c
���������� �����������
.It Cm d
�������
.It Cm f
������� ����
.It Cm l
������������� ������
.It Cm p
����������� ����� (FIFO)
.It Cm s
�����
.El
.It Ic -user Ar ���_������������
�������, ���� ���� ����������� ������������ � ������
.Ar ���_������������ .
����
.Ar ���_������������
������ � �������� ���� � ������ ����� ������������ �� ����������, ��
��������
.Ar ���_������������
���������� ��� ������������� ������������ (user ID).
.El
.Pp
��� ���������, ����������� �������� ��������, ��������� ������� �����
����� �� ������ ����
.Pq Dq Li +
��� �����
.Pq Dq Li - .
�������������� ���� ��������
.Dq ������ n ,
�������������� ����� ��������
.Dq ������ n ,
� ���������� ����� \[em]
.Dq ����� n .
.Sh ���������
��������� ����� ��������������� � �������������� ������������� ����������.
��������� ����������� � ������� ��������� ����������.
.Pp
.Bl -tag -width indent -compact
.It Cm \&( Ar ��������� Cm \&)
����� ��������, ���� ������� ��������� � �������.
.Pp
.It Cm \&! Ar ���������
.It Cm -false Ar ���������
.It Cm -not Ar ���������
��� ������� ��������
.Tn �� .
�� ����� ��������, ���� ��������� �����.
.Pp
.It Ar ��������� Cm -and Ar ���������
.It Ar ��������� ���������
��������
.Cm -and
���� ���������� ��������
.Tn � .
��������� �� ��������������� ���������������� ���������� ���� ���������, ���
�� ��������� ��������� ����.
��������� �������, ���� ��� ��������� �������.
������ ��������� �� �����������, ���� ������ ��������� �����.
.Pp
.It Ar ��������� Cm -or Ar ���������
��������
.Cm -or
���� ���������� ��������
.Tn ��� .
��������� �������, ���� ����� �� ���� ��������� �������.
������ ��������� �� �����������, ���� ������ ��������� �������.
.El
.Pp
��� �������� � ��������� ������ ���� ���������� �����������
.Nm .
���������, ������� ����������� ���������, ������� �� ��� ���������
���������
.Nm .
.Sh ���������
���������� ���������
.Ev LANG , LC_ALL , LC_COLLATE , LC_CTYPE , LC_MESSAGES
�
.Ev LC_TIME
������ �� ���������� �������
.Nm ,
��� ������� �
.Xr environ 7 .
.Sh �������
������������� ������� �������� � ����, ����������� ��������� ���������:
.Bl -tag -width indent
.It Li "find / \e! -name \*q*.c\*q -print"
������� ������ ���� ������, ����� ������� �� ������������� ��
.Pa .c .
.It Li "find / -newer ttt -user wnj -print"
������� ������ ���� ������, ������������� ������������
.Dq wnj ,
������� �������� ������� �����
.Pa ttt .
.It Li "find / \e! \e( -newer ttt -user wnj \e) -print"
������� ������ ���� ������, ������� �������� �� ������� �����
.Pa ttt
� ������������ �� ����������� ������������
.Dq wnj .
.It Li "find / \e( -newer ttt -or -user wnj \e) -print"
������� ������ ���� ������, ������� ����������� ������������
.Dq wnj
��� �������� ������� �����
.Pa ttt .
.It Li "find / -newerct '1 minute ago' -print"
������� ������ ���� ������, ��������� ���������� ������� ���
����� �� ������� ����� ������ �����.
.It Li "find / -type f -exec echo {} \e;"
������������ �������
.Xr echo 1
��� ������ ������ ���� ������.
.It Li "find -L /usr/ports/packages -type l -delete"
������� ��� ����� ������������� ������ �
.Pa /usr/ports/packages .
.It Li "find /usr/src -name CVS -prune -o -depth +6 -print"
����� ����� � ��������, ������� �� ������� ���� ���� ������� �����������
� ������� ��������
.Pa /usr/src .
.It Li "find /usr/src -name CVS -prune -o -mindepth 7 -print"
��� �� ������������ ����������� �������, ���������
.Ic -prune
�� ����������� ���� ������ ����.
.El
.Sh �������������
��������
.Ic -follow
�������; ������ ���� ������������� ������������ �����
.Fl L .
��������� �� ���� �������� ����, � �������
.Sx ��������� .
.Sh ������ �����
.Xr chflags 1 ,
.Xr chmod 1 ,
.Xr cvs 1 ,
.Xr locate 1 ,
.Xr whereis 1 ,
.Xr which 1 ,
.Xr xargs 1 ,
.Xr stat 2 ,
.Xr acl 3 ,
.Xr fts 3 ,
.Xr getgrent 3 ,
.Xr getpwent 3 ,
.Xr strmode 3 ,
.Xr re_format 7 ,
.Xr symlink 7
.Sh ���������
��������� �������
.Nm
������������ ����� ������������ ����������, ���������� � ���������
.St -p1003.1-2001 .
.Pp
��� ������������� �����, �����
.Fl H
�
.Fl L ,
� �����
.Ic -amin , -anewer , -cmin , -cnewer , -delete , -empty , -fstype ,
.Ic -iname , -inum , -iregex , -ls , -maxdepth , -mindepth , -mmin ,
.Ic -path , -print0 , -regex
� ��� ��������� � �������� �������� ���������
.Ic -B* ,
������������ ����� ���������� � ���������
.St -p1003.1-2001 .
.Pp
�����������, �����
.Fl d , L
�
.Fl x
���� ����������� ����� ���������
.Ic -depth , -follow
�
.Ic -xdev .
��� ��������� ���� ������ �������.
��������� ��� ���������� ���� ����������� �����������, ����������� � ����
�� ������ ������, ��������� ���������� ��������� ����� ����� �����������
����������, ��������,
.Ic -print Cm -o Ic -depth .
���������
.Ic -print
������ �������, ����������� ������� ���������� �������������, ���
.Ic -depth
������� �� ����������, ��� � ���������������� �� ���.
.Pp
��������
.Cm -or
��� ���������� ���
.Cm -o ,
� ��������
.Cm -and
��� ���������� ���
.Cm -a .
.Pp
������������ ���������� ����������
.Ic -exec
�
.Ic -ok
�� �������� ������
.Dq Li {}
� ����� ������� � ţ ����������, ���� ����� ����� ���� �������
��� ����� ����� �ţ ���� ������������ �������.
��� ������ �������� ţ � ����� ����� � ����� �������
� ţ ����������, ��� �� ��� �� �����������.
.Pp
�����
.Fl E
���� ������� �����ͣ���� ������
.Xr grep 1
�
.Xr sed 1 .
.Sh �������
�������
.Nm
��������� �
.At v1 .
.Sh ��������
����������� �������, ������������
.Nm ,
�������� ����� ������������ ��������� ��� ������ ��������� ��������.
� ���������, ����� ������������� ������������ �� ��������� �������� �������
.Dq Li * ,
.Dq Li \&[ ,
.Dq Li \&] ,
.Dq Li \&? ,
.Dq Li \&( ,
.Dq Li \&) ,
.Dq Li \&! ,
.Dq Li \e
�
.Dq Li \&; .
.Pp
��������� �� ���������� ������������, ���������� ����� �� �ͣ� ������ ��� �����
������ �� ���������,
������ ������ ����� � ������� ����
.Pa -xdev
���
.Pa \&! .
��� �������� �������� ������
.Fl f
� ������������
.Dq Fl Fl
���
.Xr getopt 3 .
.Pp
��������
.Ic -delete
����� ��������������� � ������� �������, ��������� ������� ������
������ �������� �������.
.Pp
���������
.Ic -mindepth
�
.Ic -maxdepth
���������� �������� ����������� ������� (��� ��������������� ����).
���, ��-��������, ������ ���� �������� �������, ����������� ��� �����.