Latest web development tutorials

Linux mdir command

Linux mdir command

Linux command Daquan Linux command Daquan

Linux mdir command is used to display the MS-DOS directory.

mdir tool for the mtools commands to simulate an MS-DOS dir command to display the MS-DOS file system directory contents.

grammar

mdir [-afwx/][目录]

Parameters:

  • - / Show all subdirectories and files in the directory.
  • -a show hidden files.
  • -f disk does not show the remaining available space.
  • -w only show the directory or file name, and horizontally presented in a way so that one can display more directory or file.
  • -X Display only the full path to the directory and all subdirectories of files, with no other information.

Examples

Display the contents of a disc

$ mdir -/ a:\*   

After the above command is executed, mdir will display the specified disk "a: \" All sub-directory and file information as follows:

Volume in drive A has no label  #加载信息  
Volume Serial Number is 13D2~055C  
Directory for A:\                   #以下为目录信息  
./TEST <DIR> 2011-08-23 16:59     
#显示格式为文件名,目录大小,修改时间  
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 Daquan Linux command Daquan