Displays the contents of a directory.
   dir [d:][path][file] [options]


  A specific file to display.

  Displays one page of the listing at a time.

  Displays the listing in wide format.

  Displays only the files and directories with the specified
  attributes.  Default is /a:hsdar.  You may use the following for
    h | -h
    Hidden files.  -h for files that are not hidden.

    s | -s
    System files.  -s for files that are not system files.

    d | -d
    Directories.  -d for files.

    a | -a
    Files with the archive bit.  -a for files without the archive bit.

    r | -r
    Read-only files.  -r for files that are not read-only.

  Displays the listing in the specified order. You may use the
  following to specify the sort order:
    a | -a
    Sort alphabetically A-Z.  -a to sort Z-A.

    e | -e
    Sort by extension A-Z.  -a to sort by extension Z-A.

    d | -d
    Sort by date and time.  -d to sort in reverse order.

    s | -s
    Sort by size, smallest-biggest.  -s to sort biggest-smallest.

    g | -g
    Group directories first.  -g to group directories last.

  List every occurrence in all subdirectories.

  Bare format. Lists one name per line.

  Displays names in lowercase.


To customise the default appearance for dir, use the DIRCMD environment variable. For instance:
   set DIRCMD=/w/p
To override something set in DIRCMD, use a hypen on that switch at the command line. (for example /-w)
Copyright © 1998 Jim Hall
This file is derived from the FreeDOS Spec Command HOWTO. See the file H2Cpying.txt for copying conditions.