Easy Tutorial
❮ Linux Comm Mpartition Linux Comm Whoami ❯

Linux mdir Command

Linux Command Manual

The Linux mdir command is used to display MS-DOS directories.

mdir is a command in the mtools utility suite that emulates the dir command of MS-DOS, showing the contents of directories in the MS-DOS file system.

Syntax

mdir [-afwx/][directory]

Parameters:

Example

Display the contents of drive a:

$ mdir -/ a:\*

After executing the above command, mdir will display all subdirectories and their file information in the specified drive "a:\", as shown below:

Volume in drive A has no label  # Load information  
Volume Serial Number is 13D2~055C  
Directory for A:\                   # Directory information  
./TEST <DIR> 2011-08-23 16:59     
# Display format: file name, directory size, modification time  
AUTORUN.INF 265 2011-08-23 16:53  
AUTORUN.BAT 43 2011-08-23 16:56  
3 files 308 bytes               # Total size  
724 325 bytes free              # Free space

Linux Command Manual

❮ Linux Comm Mpartition Linux Comm Whoami ❯