16.12.2012 Views

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

z/OS V1R9.0 UNIX System Services Command ... - Christian Grothoff

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

find<br />

Localization<br />

Exit Values<br />

8. To find all files and directories starting at the current directory point, with an<br />

extended ACL user entry for user Billy for any ACL (access, file default, or<br />

directory default), issue:<br />

or<br />

find . -acl_user Billy<br />

find . -acl_entry user:Billy -o -acl_entry d:u:Billy -o -acl_entry f:u:Billy<br />

9. To find all files and directories (starting from the current directory) that have<br />

more than 10 extended ACL entries for any of the ACL types, issue:<br />

find . -acl_count +10<br />

10. To find all files and directories containing access ACLs which have an<br />

extended ACL entry for user Averi, starting from the current user’s home<br />

directory:<br />

find ~ -acl_entry user:Averi<br />

11. To find all directories whose file default ACLs have a group entry for Lakers,<br />

starting at the current point in the directory hierarchy:<br />

find . -acl_entry fdefault:group:Lakers<br />

12. To find all files for user Marc (in other words, all the files that Marc owns),<br />

starting from his home directory:<br />

find /u/marc -user marc<br />

13. To find all directories (starting from current directory) which have file default<br />

ACLs:<br />

find . -acl f<br />

14. To find all directories whose file default or directory default ACLs have a group<br />

entry for Lakers, starting at the current point in the directory hierarchy:<br />

find . -acl_entry fdefault:group:Lakers -o -acl_entry default:group:Lakers<br />

find uses the following localization environment variables:<br />

v LANG<br />

v LC_ALL<br />

v LC_COLLATE<br />

v LC_CTYPE<br />

v LC_MESSAGES<br />

v LC_SYNTAX<br />

v NLSPATH<br />

See Appendix F for more information.<br />

0 Successful completion<br />

1 Failure due to any of the following:<br />

v Not enough memory<br />

v Incorrect character specified after –type<br />

v Inability to get information on a file for –newer<br />

v Incorrect permissions for –perm<br />

v Inability to open a file for the –cpio option<br />

v Unknown user or group name<br />

v Unable to access the PATH variable<br />

v Cannot run a command specified for –exec or –ok<br />

v Syntax error<br />

288 z/<strong>OS</strong> <strong>V1R9.0</strong> <strong>UNIX</strong> <strong>System</strong> <strong>Services</strong> <strong>Command</strong> Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!