Linux mdir Command
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:
- -/ Display all subdirectories and files under a directory.
- -a Display hidden files.
- -f Do not display the remaining free space on the disk.
- -w Display only directory or file names, arranged horizontally so that more directories or files can be shown at once.
- -X Display only the full paths of all subdirectories and files under a directory, with no other information.
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