home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / pc / unix / ls.zoo / ls.doc next >
Encoding:
Text File  |  1990-12-21  |  3.7 KB  |  101 lines

  1.  
  2.    NAME
  3.       ls - list the contents of a directory
  4.  
  5.    SYNOPSIS
  6.       ls [ -aAbcCdfFghilmnopqrRstux ] [ filename ]...
  7.  
  8.    DESCRIPTION
  9.       For each filename which is a directory, ls lists the contents of
  10.       the directory;  for each filename which is a file, ls repeats its
  11.       name and any other information requested.  By default, the output
  12.       is sorted alphabetically.  When no argument is given, the current
  13.       directory is listed.  When several arguments are given, the
  14.       arguments are first sorted appropriately, but file arguments are
  15.       processed before directories and their contents.
  16.  
  17.       In order to determine output formats for the -C, -x, and -m
  18.       options, ls examines the COLUMNS environment variable to determine
  19.       the number of character positions available on an output line.  If
  20.       this variable is not set, 80 columns are assumed.
  21.  
  22.       Permissions Field
  23.       The mode printed under the -l option contains 6 characters
  24.       interpreted as follows.  Each character represents one bit of the
  25.       directory attribute field.  The characters represent:
  26.          a     the ARCHIVE attribute;
  27.          d     entry is a directory;
  28.          v     entry is a volume label;
  29.          s     the SYSTEM attribute;
  30.          h     the HIDDEN attribute;
  31.          r     the READ-ONLY attribute.
  32.  
  33.    OPTIONS
  34.       -a List all entries;  in the absence of this option, the "." and
  35.          ".." entries or entries that have the HIDDEN or SYSTEM attribute
  36.          are not listed.
  37.  
  38.       -A Same as -a, except that "." and ".." are not  listed.
  39.  
  40.       -b Force printing of non-graphic characters to be in the octal \ddd
  41.          notation.
  42.  
  43.       -c Use time of last modification for sorting or printing.  If not
  44.          available, 0 is used and dashes are printed.
  45.  
  46.       -C Force multi-column output, with entries sorted down the
  47.          columns.
  48.  
  49.       -d If argument is a directory, list only its name (not its
  50.          contents);  often used with -l to get the status of a directory.
  51.  
  52.       -f Not supported.
  53.  
  54.       -F Mark directories with a trailing slash ('/') and executable
  55.          files with a trailing asterisk ('*').  ls is generous in the
  56.          interpretation of "executable".
  57.  
  58.       -g Same as -l.
  59.  
  60.       -h Display a more complete usage description on the standard
  61.          output.
  62.  
  63.       -i Not supported.
  64.  
  65.       -l List in long format, giving attributes, size in bytes, and time
  66.          of last modification for each file.  If the file is a device the
  67.          attribute field will contain the string "DEVICE", and the size
  68.          field will contain the hexadecimal representation of the magic
  69.          number returned by the system.
  70.  
  71.       -m Stream output format;  the file names are printed as a  list
  72.          separated by commas, with as many entries as possible printed on
  73.          a line.
  74.  
  75.       -n Same as -l.
  76.  
  77.       -o Same as -l.
  78.  
  79.       -p Put a slash ('/') after each filename if that file is a
  80.          directory.
  81.  
  82.       -q Display non-graphic characters in filenames as the character ?;
  83.          this is the default when output is to a terminal.
  84.  
  85.       -r Reverse the order of sort to get reverse alphabetic or oldest
  86.          first as appropriate.
  87.  
  88.       -R Recursively list subdirectories encountered.
  89.  
  90.       -s Give size of each file in kilobytes.
  91.  
  92.       -t Sort by time modified (latest first) instead of by name.
  93.  
  94.       -u Use time of last access instead of last modification for sorting
  95.          (with the -t option) and/or printing (with the -l option).
  96.  
  97.       -x Multi-column output with entries sorted across rather than down
  98.          the page.
  99.  
  100. Copyright (c) 1990  Frank Whaley  All rights reserved
  101.