Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ dir(CMD) — OpenDesktop 1.0.0y

Media Vault

Software Library

Restoration Projects

Artifacts Sought


     DIR(DOS)          UNIX System V           DIR(DOS)



     Name
          dir - lists the files in a directory


     Syntax
          dir [drive:][pathname][/p][/w]


     Comments
          If you just enter dir, all directory entries on the  default
          drive  are  listed.   If  you  include  a  drive name in the
          command, such as b:, all entries in the default directory of
          the  disk  in drive B are listed.  If you include a filename
          without an extension (invoices, for example) MS-DOS lists
          all files named invoices in the default directory of the
          disk in the default drive.

          When  you  use  dir  with  a  filename  and   drive   letter
          (b:invoices,  for  example) MS-DOS displays all files on the
          disk in drive B with the filename invoices.  In  all  cases,
          (except  when  using the /w switch), MS-DOS lists files with
          their size in bytes and with the time and date of their last
          modification.

          Note that the following dir commands are  equivalent,  since
          you can use the wildcards ? and * in the pathname option:

                         COMMAND        EQUIVALENT
                         _____________________________
                         dir            dir *.*

                         dir filename   dir filename.*
                         dir .ext       dir *.ext

          The switches are:

          /p   Selects page mode.  It also makes the directory display
               stop  scrolling  when the screen has filled.  To resume
               scrolling the display, press any key.

          /w   Selects wide display and causes MS-DOS to display  only
               filenames  and  not  other  file information.  The wide
               display lists up to five files per line.

          Note that if the country command in the config.sys  file  is
          set to a country other than the U.S., the directory date and
          time formats  may  differ.   For  more  information  on  the
          config.sys  file,  See  Appendix  A, ``How to Configure Your
          System.''


     Example
          If your directory contains more files than you  can  see  on
          the screen at one time, enter the following:

               dir /p

          This command displays the directory one screenful at a time.


     Notes
          dir is an internal command.


     DIR(DOS)             (printed 8/16/89)              DIR(DOS)

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