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.

Usage Note<br />

total 32<br />

-rwxr-xr-x ---- 1 ROOT SYS1 0 Mar 26 08:47 tmp<br />

-drwxr-xr-x 2 ROOT SYS1 8192 Mar 26 08:50 usr<br />

-rwxr--r-- cr 1 ROOT SYS1 40 Mar 26 08:55 abc<br />

If ls –E is used in conjunction with –H, then the four characters will follow the four<br />

characters normally associated with ls –E:<br />

ls -EH<br />

-rwxr-xr-x ap-l bin 1 ROOT SYS1 101 Mar 12 19:21 foo<br />

If ls –W is issued, an additional 6 characters, in two groups of 3, follow the original<br />

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

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

total 11<br />

drwxr-xr-x fff--- 3 ROOT SYS1 0 Mar 12 19:32 tmp<br />

drwxrwxrwx fff--- 4 ROOT SYS1 0 Mar 12 19:32 usr<br />

drwxr-xr-x fff--- 2 ROOT SYS1 0 Mar 12 19:32 bin<br />

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

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

To display information about a directory from a symbolic link to the directory, either<br />

add a trailing slash to the symbolic link name, or use the -L option. For example, if<br />

the /etc directory has been converted into a symbolic link, issuing an ls on /etc<br />

without a trailing slash will give you the following information:<br />

> ls -l /etc<br />

lrwxrwxrwx 1 BPXROOT BIN 12 Oct 18 19:46 /etc -> $SYSNAME/etc<br />

However, if you add the trailing slash, the following information about /etc will be<br />

displayed:<br />

> ls /etc/<br />

IBM cmx init.options profile utmpx<br />

NetQ csh.cshrc ioepdcf rc yylex.c<br />

Printsrv csh.login ldap recover yyparse.c<br />

TextTools dce log security zoneinfo<br />

booksrv dfs magic socks.conf<br />

bpe imoisinf mailx.rc startup.mk<br />

The same information is displayed when the -L option is used:<br />

ls -L /etc<br />

IBM cmx init.options profile utmpx<br />

NetQ csh.cshrc ioepdcf rc yylex.c<br />

Printsrv csh.login ldap recover yyparse.c<br />

TextTools dce log security zoneinfo<br />

booksrv dfs magic socks.conf<br />

bpe imoisinf mailx.rc startup.mk<br />

Environment Variables<br />

ls uses the following environment variables:<br />

COLUMNS<br />

Contains the terminal width in columns. ls uses this value to determine the<br />

number of output columns to write using the –C option.<br />

TZ Contains the time zone to be used when displaying date and time strings.<br />

ls<br />

Chapter 2. Shell command descriptions 367

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

Saved successfully!

Ooh no, something went wrong!