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.

ls<br />

–H Displays file formats for regular files:<br />

–––– not specified<br />

bin binary data<br />

nl new line<br />

cr carriage return<br />

lf line feed<br />

crlf carriage return followed by line feed<br />

lfcr line feed followed by carriage return<br />

crnl carriage return followed by new line<br />

–i<br />

–H turns on the Long Output Format. See “Long Output Format” on page<br />

365 for details.<br />

Displays file serial (inode) numbers along with filenames.<br />

–k Uses 1024 bytes for block size.<br />

–L Follows symbolic links.<br />

–l Displays permissions, links, owner, group, size, time, name. See “Long<br />

Output Format” on page 365 for details.<br />

–M Displays the Multilevel Security seclabel of the file, as in this example:<br />

> ls -M has_seclabel no_seclabel<br />

SECLABEL has_seclabel<br />

no_seclabel<br />

ls –M does not turn on the –l option. ls –M can be used with other options.<br />

See “Long Output Format” on page 365 for details.<br />

–m Displays names in a single line, with commas separating names.<br />

–n Displays UID number and GID number.<br />

–o Same as –l except that it does not display group.<br />

–o turns on the Long Output Format. See “Long Output Format” on page<br />

365 for details.<br />

–p Puts / after directory names.<br />

–q Displays nonprintable characters as ?.<br />

–R Lists subdirectories recursively.<br />

–r Sorts in reverse of usual order; you can combine this with other options that<br />

sort the list.<br />

–s Displays size in blocks, after the file serial (inode) number, but before other<br />

information. The block size is 512 bytes unless the –k option is used.<br />

–t Sorts by time. By default, this option sorts the output by the modification<br />

times of files. You can change this with the –c and –u options.<br />

–u Uses the last access time for sorting (–t) or displaying (–l) .<br />

–W Enables the audit bits to be displayed (see “chaudit” for information on audit<br />

bits). This option turns on the –l option.<br />

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

These bits are printed in a 6-character field directly after the field displaying<br />

the file permission bits. These 6 characters are really two groups of 3 bits<br />

each. The first group of 3 describes the user-requested audit information.<br />

The second group of 3 describes the auditor-requested audit information.<br />

Each 3 characters displayed are the read, write, and execute (or search)<br />

audit options. Each character indicates the audit option as:

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

Saved successfully!

Ooh no, something went wrong!