home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / DIR / LS_N_DF.ZIP / LS.DOC < prev   
Encoding:
Text File  |  1990-10-29  |  1.9 KB  |  54 lines

  1. ls    - list file names
  2.  
  3. SYNOPSIS
  4.     ls [-adlrstu1ACFR] name1 name2 ...
  5.  
  6. DESCRIPTION
  7.     This is as closely as possible an imitation of the Unix<tm> utility of
  8.     the same name.  Options accepted are:
  9.  
  10.     a    List all files (including system and hidden files, as well as
  11.         the dummy directory entries '.' and '..').
  12.     d    List the argument(s) as a directory (as opposed to its
  13.         contents).
  14.     l    Give a long listing, one per line (except as described below).
  15.     r    Sort the entries in reverse the usual order.
  16.     s    Print the size of each file in clusters.
  17.     t    Sort the entries by time.
  18.     u    Do not sort the entries.
  19.     1    List the entries one per line.
  20.     A    Same as -a, except that '.' and '..' are not listed.
  21.     C    Give a multi-column output.
  22.     F    Add a trailing slash to directory names.
  23.     R    Recursively list files in all subdirectories ('.' and '..' are
  24.         never listed in this manner).
  25.  
  26.     For the date of the root directory of a drive, the date of the volume
  27.     label is used, if present; otherwise it is left blank.
  28.  
  29.     By default, multicolumn output is selected when the output is to the
  30.     screen, off otherwise.  If the -l option is selected, however, the
  31.     default is one file per line.  One can do -lC if all file names are at
  32.     most 12 characters long, though.
  33.  
  34.     The characters in the -l lines differ from those in Unix<tm>, because
  35.     of the differing file systems.  The various bits used here are:
  36.  
  37.         d----    the file is a subdirectory
  38.         -a---    the file has not been backed up
  39.         --s--    the file is a system file
  40.         ---h-    the file is hidden
  41.         ----r    the file is read-only
  42.  
  43.     And finally, in conformance with the DOS DIR command, arguments without
  44.     a "." in them have ".*" automatically appended, unless they refer to
  45.     a subdirectory.
  46.  
  47. ENVIRONMENT
  48.     Additional options may be specified in the environment variable LS.
  49.     For example:  set ls=F
  50.  
  51. BUGS
  52.     Does not report disk space used by subdirectories themselves (just
  53.     their files).
  54.