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.

ls<br />

r Permission to read the file<br />

w Permission to write on the file<br />

x Permission to execute the file<br />

The following characters appear only in the execute permission (x) position of the<br />

output.<br />

S Same as s, except that the execute bit is turned off.<br />

s If in owner permissions section, the set-user-ID bit is on; if in group<br />

permissions section, the set-group-ID bit is on.<br />

T Same as t, except that the execute bit is turned off.<br />

t The sticky bit is on.<br />

The following character appears after the permissions if the file contains extended<br />

ACL entries:<br />

+<br />

Example:<br />

ls -l file<br />

-rwxrwxrw-+ WELLIE SYS 167 Jan 11 09:54 file<br />

Use getfacl to display the extended ACL entries. You can set permissions with<br />

either chmod or setfacl.<br />

After the permissions are set, ls displays the following (using the preceding<br />

example), in order:<br />

v The number of links to the file.<br />

v The name of the owner of the file or directory.<br />

v The name of the group that owns the file or directory.<br />

v The size of the file, expressed in bytes. For character special files, it displays the<br />

major and minor device types.<br />

v For a file, the date and time the file was last changed; for a directory, when it<br />

was created. The –c and –u options can change which time value is used. If the<br />

date is more than 6 months old or if the date is in the future, the year is shown<br />

instead of the time.<br />

v The name of the file or directory.<br />

Note: When files owned by user ID 0 (UID=0) are transferred from any <strong>UNIX</strong>-type<br />

system across an NFS connection to another <strong>UNIX</strong>-type system, the UID<br />

changes to –2 (UID = –2). Because –2 is not a valid UID on a z/<strong>OS</strong> <strong>System</strong>,<br />

ls displays a –2 in place of the user name.<br />

If ls –E is issued, an additional four characters follow the original 10 characters:<br />

total 11<br />

-rwxr-xr-x -ps- 1 ROOT SYS1 101 Mar 12 19:32 her<br />

-rwxrwxrwx a-s- 1 ROOT SYS1 654 Mar 12 19:32 test<br />

-rwxr-xr-x a-- 1 ROOT SYS1 40 Mar 12 19:32 temp<br />

-rwxr--r-- ap-l 1 ROOT SYS1 572 Mar 12 19:32 foo<br />

-rwxr--r-- --sl 1 ROOT SYS1 640 Mar 12 19:33 abc<br />

If ls –H is issued, an additional four characters follow the original 10 characters:<br />

366 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!