Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Linux mdir Command

Linux mdir Command

Linux Command Reference Linux Command Reference

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

mdir is an mtools utility command that emulates the MS-DOS dir command and displays directory contents in an MS-DOS filesystem.

Syntax

mdir [-afwx/][目录]

Parameters:

Example

Display the contents of drive a



$ mdir -/ a:\*   

After running the above command, mdir displays all subdirectories and their file information on the specified drive "a:", as shown below:



Volume in drive A has no label  #加载信息  

Volume Serial Number is 13D2~055C  

Directory for A:\                   #以下为目录信息  

./TEST  2011-08-23 16:59     

#Display format as filename, directory size, modification time

AUTORUN.INF 265 2011-08-23 16:53  

AUTORUN.BAT 43 2011-08-23 16:56  

3 files 308 bytes               #统计总大小  

724 325 bytes free              #剩余空间  

Linux Command Reference Linux Command Reference