Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ld — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

DATETIME

5.1;ld (list_directory), revision 4.0, 82/03/25
LD (LIST_DIRECTORY) -- List contents of a directory.
usage:  LD [pathname...] [-LD |-LF |-LL] [-LT] [-D |-DTC |-DTM |-DTU]
           [ [-A | [-ATTR] [-BL] [-LEN] [-R] [-ST] [-TU]] [[-SI | [-AB] [-CONC]
           [-RT]] [-C] [[-HD |-NHD] [-SN |-NSN]  [-NWARN]    {CL}


FORMAT

  LD [pathname...] [options]

  LD lists the objects in a directory on standard output.  It provides a wide
  variety of information on the contents of the various objects,  depending on
  the command options that you select.


ARGUMENT

  pathname
  (optional)       Specify pathname of object to be described.  The object
                   may be a directory, a file, or a link.  If you specify a
                   directory, LD describes the files in that directory.  If
                   you specify a file, the attributes of that file are
                   reported.  Multiple pathnames and wildcarding are permitted.
                   (If they are used, each name is assumed to be a filename.)
                   Default if omitted: list contents of working directory.


OPTIONS

  ("(D)" indicates defaults.)

  ATTRIBUTES

  -A               Display all attributes.
  -ATTR            Display permanent/immutable/trouble flags.
  -BL              Display disk blocks used.
  -LEN             Display current length in bytes.
  -R               Display your access rights to entries.
  -ST              Display system object type.
  -TU              Display type UIDs.

  DATE AND TIME

  -D               Display creation, modified, and last used dates.
  -DTC             Display date/time created.
  -DTM             Display date/time last modified.
  -DTU             Display date/time last used.

  STREAMS

  -SI              Display all stream header information.
  -AB              Display streams ASCII/binary flag.
  -CONC            Display streams object concurrency.
  -RT              Display streams record type.

  ENTRY SELECTION

  -AF d            Display entries modified after date and time "d".

  -BE d            Display entries modified before date and time "d".

  -DI              Treat all names as directory names and list the contents of
                   those directories.

  -EN              Treat all names as entry names.

  -LD         (D)  List directory names.  If this option is specified, then -LF
                   and -LL lose their default status, and must be specified
                   explicitly, if desired.

  -LF         (D)  List file names.  If this option is specified, then -LD and
                   -LL lose their default status, and must be specified
                   explicitly, if desired.

  -LL         (D)  List link names.  If this option is specified, then -LD and
                   -LF lose their default status, and must be specified
                   explicitly, if desired.

  -LT              Display link resolution names.

  OUTPUT CONTROL

  -C               List entries in a single column, suppress header.
  -HD         (D)  Display header and totals.
  -NHD             Suppress header and totals.
  -SN         (D)  Sort entries by name.
  -NSN             Suppress entry sorting.

  -WARN       (D)  Produce a warning if no wildcard matches are found.
  -NWARN           Suppress warning if no wildcard matches are found.


  LD uses the command line parser, and so also accepts the standard command
  options with the exception of the query options (-QA, -NQ, -QW).
  Type HELP CL for more information.


  TIME

  The time at which a file is created, modified, or used is accurate within a
  certain tolerance.  The reported time of creation or modification is correct
  within one minute of the actual creation or modification time.  The time of
  last use is updated only if more than an hour has elapsed since the recorded
  time of last use.  Hence the time of last use reported by the LD command may
  vary by as much as an hour from the actual time of last use.


EXAMPLES

  1. $ ld -a

     Directory "/col/users/final1":

     sys   type  blocks  current
     type  uid     used   length  attr rights   name

     file  rec       18    17640  P    pndwrx   ch1
     file  rec       18    18428  P    pndwrx   ch2
     file  rec       67    67210  P    pndwrx   ch3
     file  rec       12    11554  P    pndwrx   ch4

     4 entries, 115 blocks used.

  2. $ ld -dtm

     Directory "/col/users/final1":

       date/time
       modified      name

     82/03/28 17:18  ch1
     82/03/28 17:18  ch2
     82/03/28 17:19  ch3
     82/03/28 17:20  ch4

     4 entries, 115 blocks used.

  3. $ ld /sys/ins/[a-e]?*.ins.ftn -a

     sys   type  blocks  current
     type  uid     used   length  attr rights     name

     file  rec        1      872  P    pndwrx     /sys/ins/base.ins.ftn
     file  rec        2     1274  P    pndwrx     /sys/ins/cal.ins.ftn
     file  uasc      20    19966  P    pndwrx     /sys/ins/core.ins.ftn
     file  rec        1      738  P    pndwrx     /sys/ins/ec2.ins.ftn

     4 entries listed, 24 blocks used.


RELATED TOPICS

  More information is available.  Type:

    - HELP DATETIME
      For information on date-time syntax.

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026