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 : (letter "ell") 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 
-A : print annotation info
-C : multicolumn output format, with entries sorted down the columns
-D : (version 3.4.3 and beyond) displays the full date/time stamp

-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 per node with volume/position/VSN list/COS/file family/subsystem  info
-R : recursively list directories

-S : (3.4.3 and beyond) display sizes in the form XX.Y sfx, where sfx is "B","KB","MB","GB","TB","PB" or "XB", where 1K = 1000.  Enables "-l" option.

-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 
    r - last read time
    c - file creation time
    m - time of last modification (default)

-U : print HPSS-specific information
-V : print volume info for 1st tape level. Enables "-l" option
-X : print extended volume info (for all levels). Enables "-l" option.
-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):