Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Listing directory contents z/OS UNIX System Services User's Guide SA23-2279-00 |
|
The ls command lists the contents of a directory. To see
the contents of your working directory, enter:
To list
the contents of a different directory, add the relative or absolute
name of the directory you want to look at, as in:
ls displays directory contents in alphabetic
order. Typical ls output looks like:
ls does
not normally distinguish between directories, regular files, and special
files. If you want a list of directory contents that distinguishes
between file types, use the -F option. Entering:
gives you output in the form:
The
symbols following the file names indicate the type of file:
ls can list the contents of more than one directory at
a time. For example:
lists the contents of
the two given directories, one after the other. Try this command on
a pair of directories to see what format ls uses.The ls command with the -E option displays a
character indicating whether or not the program is loaded from the
shared library region. If the program is from the shared library region,
an 'l' will appear as the fourth character in the second column. If
the program is not from the shared library region, a '-' will appear.
For example:
In this example, the files james, backup, and temp are not loaded from the shared library region, but the files diag and bird are. |
Copyright IBM Corporation 1990, 2014
|