Next: , Previous: , Up: Commands   [Contents][Index]


4.11 Mdir

The mdir command is used to display an MS-DOS directory. Its syntax is:

mdir [-/] [-f] [-w] [-a] [-b] msdosfile [ msdosfiles…]

Mdir displays the contents of MS-DOS directories, or the entries for some MS-DOS files.

Mdir supports the following command line options:

/

Recursive output, just like MS-DOS’ -s option

w

Wide output. With this option, mdir prints the filenames across the page without displaying the file size or creation date.

a

Also list hidden files.

f

Fast. Do not try to find out free space. On larger disks, finding out the amount of free space takes up some non trivial amount of time, as the whole FAT must be read in and scanned. The -f flag bypasses this step. This flag is not needed on FAT32 file systems, which store the size explicitly.

b

Concise listing. Lists each directory name or filename, one per line (including the filename extension). This switch displays no heading information and no summary. Only a newline separated list of pathnames is displayed.

An error occurs if a component of the path is not a directory.