LS Command

HSI Version:

All

Purpose:

List HPSS nodes

Aliases: LIST, DIR

Command Format:

{ls | l[ist] | dir} [options] [path ...]

Options:

-a : list all entries, including "hidden" files whose names begin with "."
-c : use time of last modification for sorting (deferred)
-d : if file is a dir, list its name instead of its contents
-l : long list format
-p : put a slash after each name if the file is a directory (deferred)
-r : reverse alpha or age sort order, as appropriate (deferred)
-s : display size as well as name if -1 (numeral 1) option used
-u : use time of last access for sorting instead of last modification (deferred)
-x : multicolumn output format, with entries sorted across page (deferred)
-A : print annotation info
-C : multicolumn output format, with entries sorted down the columns (deferred)
-F : puts a / after directory filenames, or * if executable (deferred)
-H : print headings on long listings
-O : print unordered "-l" or "-1" format listings
-P : print one-line with position/volume info
-R : recursively list directories

-T : "type" where type is one of w,r,c or m. This allows the user to specify which HPSS time value is displayed when one of the "long list" options (e.g. "ls -l") is used. The letters stand for:

w - last write time (default)
r - last read time
c - file creation time
m - time of last metadata update

-U : print HPSS-specific information
-V : print volume for 1st tape level
-X : print extended volume info (for all levels)
-1 : (numeral 1) forces one name-per-line list

Keywords:

DIRn

Usage Notes:

List options are available to cause the output to be formatted in a variety of ways. They may be specified individually (e.g., "-C") or as a string (e.g., "-1R").

Example:

ls -l

Related Command(s):