find: Invoking find
1
1 8.1 Invoking 'find'
1 ===================
1
1 find [-H] [-L] [-P] [-D DEBUGOPTIONS] [-OLEVEL] [FILE...] [EXPRESSION]
1
1 'find' searches the directory tree rooted at each file name FILE by
1 evaluating the EXPRESSION on each file it finds in the tree.
1
1 The command line may begin with the '-H', '-L', '-P', '-D' and '-O'
1 options. These are followed by a list of files or directories that
1 should be searched. If no files to search are specified, the current
1 directory ('.') is used.
1
1 This list of files to search is followed by a list of expressions
1 describing the files we wish to search for. The first part of the
1 expression is recognised by the fact that it begins with '-' followed by
1 some other letters (for example '-print'), or is either '(' or '!'. Any
1 arguments after it are the rest of the expression.
1
1 If no expression is given, the expression '-print' is used.
1
1 The 'find' command exits with status zero if all files matched are
1 processed successfully, greater than zero if errors occur.
1
1 The 'find' program also recognises two options for administrative
1 use:
1
1 '--help'
1 Print a summary of the command line usage and exit.
1 '--version'
1 Print the version number of 'find' and exit.
1
1 The '-version' option is a synonym for '--version'
1
Menu