Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

nd(1) OSS Shell and Utilities Reference Manual
example, the expression -perm -0600 selects les 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 les with multiple links, enter:
nd . -type f -links +1
This lists the names of the ordinary les (-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
le links.
5. To search for the le f1 among the OSS les on the remote node node1,enter:
export UTILSGE=NOG
nd /E/node1 -name f1 -print
6. To search for the le f1 among the OSS les on the local node, enter:
nd / -W NOG -W NOE -name f1 -print
7. To nd all les not owned by user karl that have access control lists with at least one entry |
associated with karl, and one entry for no specic user in group bin with the read bit on |
and the write bit off, enter: |
nd / ! -user karl -acl u:karl:???,g:bin:r-? -print
|
8. To nd all les that have a read bit set in any access control list entry, enter: |
nd / -acl *:r?? -print
|
9. To nd all les that have the write bit unset and execute bit set in every access control list |
entry, enter: |
nd / -acl =*:?-x -print
|
10. To nd all les that have optional access control list entries, enter: |
nd / -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 les or between local and remote les.
You can use the -W NOG and -W NOE ags or the UTILSGE environment variable to exclude
objects in the Guardian le system or objects accessible through the Expand product.
EXIT VALUES
The nd command returns a 0 (zero) if all the paths are visited without error. The nd 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).|
3142 Hewlett-Packard Company 527188-007