Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)
find(1) OSS Shell and Utilities Reference Manual
example, the expression -perm -0600 selects files with permission codes that allow at
least the accesses indicated by 0600. This command also matches the permission codes
0622 and 2744.
4. To search for regular files with multiple links, enter:
find . -type f -links +1
This lists the names of the ordinary files (-type f) that have more than one link (-links +1).
Note that every directory has at least two links: the entry in its parent directory and its
own . (dot) entry. See the reference page for the ln command for details about multiple
file links.
5. To search for the file f1 among the OSS files on the remote node node1,enter:
export UTILSGE=NOG
find /E/node1 -name f1 -print
6. To search for the file f1 among the OSS files on the local node, enter:
find / -W NOG -W NOE -name f1 -print
7. To find all files not owned by user karl that have access control lists with at least one entry |
associated with karl, and one entry for no specific user in group bin with the read bit on |
and the write bit off, enter: |
find / ! -user karl -acl u:karl:???,g:bin:r-? -print
|
8. To find all files that have a read bit set in any access control list entry, enter: |
find / -acl *:r?? -print
|
9. To find all files that have the write bit unset and execute bit set in every access control list |
entry, enter: |
find / -acl =*:?-x -print
|
10. To find all files that have optional access control list entries, enter: |
find / -acl opt -print
|
NOTES
Because /G and /E both appear in your local root directory, you should be very careful when using
OSS shell commands on or from the root directory. OSS shell commands that perform recursive
actions make no distinction between Guardian and OSS files or between local and remote files.
You can use the -W NOG and -W NOE flags or the UTILSGE environment variable to exclude
objects in the Guardian file system or objects accessible through the Expand product.
EXIT VALUES
The find command returns a 0 (zero) if all the paths are visited without error. The find command
returns a nonzero value if it encounters an error.
RELATED INFORMATION
Commands: chmod(1), grep(1), ln(1), setacl(1), sh(1), test(1).
Functions: stat(2).
Miscellaneous topics: acl(5).|
3−142 Hewlett-Packard Company 527188-007