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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Examples<br />

c — Character special file<br />

d — Directory<br />

f — Regular file<br />

l — Symbolic link<br />

n — Network file<br />

p — FIFO (named pipe)<br />

s — Socket<br />

–user name<br />

Matches if the owner of the file is name. name can also be a user ID<br />

number.<br />

–xdev Does not cross device boundaries from the root of the tree search. If<br />

present, this primary always matches.<br />

File Tag Specific Options<br />

–filetag c Matches if the file tag is the same as the one given by character c.<br />

Possible values of the character are:<br />

b Matches if the file is tagged as binary (txtflag = OFF and<br />

ccsid = 0xFFFF)<br />

n Matches if the file has txtflag = OFF<br />

t Matches if the file is tagged as text (txtflag = ON)<br />

u Matches if the file is untagged (ccsid = 0)<br />

–filetag_codeset codeset<br />

Matches if the file is tagged with the given codeset<br />

Note: Codesets which are aliases of each other exist which may<br />

cause the test to fail, since the file inquiry operator may<br />

return an alias of the codeset you are testing.<br />

1. To find all files with a suffix of .c that have the audit mode set to rwx (read,<br />

write, execute), issue:<br />

find / –name "*.c" –audit rwx=sf<br />

The quotes are required around the "*.c" if you do not want the shell to expand<br />

this value to all files with a suffix of .c from within the current directory.<br />

2. To find all files with a suffix of .c and audit mode bits set to 777 (rwx), issue:<br />

find / –name "*.c" –audit 777<br />

3. To find all files with the extensions .c and .h, starting at the current point in the<br />

directory hierarchy:<br />

find . –name "*.[ch]"<br />

4. To find all files that have the extension .Z and that have not been accessed in<br />

the last three days:<br />

find . –name "*.Z" –mtime +3<br />

5. To find all files that have seclabel <strong>OS</strong>390:<br />

find . -seclabel <strong>OS</strong>390<br />

6. To find all files that have seclabel starting with <strong>OS</strong>390:<br />

find . -seclabel "<strong>OS</strong>390*"<br />

7. To find all files that have no seclabel:<br />

find . ! -seclabel "*"<br />

find<br />

Chapter 2. Shell command descriptions 287

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

Saved successfully!

Ooh no, something went wrong!