• 要找福利?记不住网址?搜不到?如何与我们保持联系?试试 CTRL+D 把零点博客添加进您的浏览器收藏夹,一键直达永不失联!

Linux mdir命令

linux系统 涛涛 100次浏览 0个评论

Linux mdir命令用于显示MS-DOS目录。

mdir为mtools工具指令,模拟MS-DOS的dir指令,可显示MS-DOS文件系统中的目录内容。

语法

<span class="pln">mdir </span><span class="pun">[-</span><span class="pln">afwx</span><span class="pun">/][目录]</span>

参数

  • -/ 显示目录下所有子目录与文件。
  • -a  显示隐藏文件。
  • -f  不显示磁盘所剩余的可用空间。
  • -w  仅显示目录或文件名称,并以横排方式呈现,以便一次能显示较多的目录或文件。
  • -X  仅显示目录下所有子目录与文件的完整路径,不显示其他信息。

实例

显示a盘中的内容

<span class="pln">$ mdir </span><span class="pun">-/</span><span class="pln"> a</span><span class="pun">:</span><span class="pln">\*   </span>

以上命令执行后,mdir将显示指定盘”a:\”中的所有子目录及其中的文件信息,如下所示:

<span class="typ">Volume</span> <span class="kwd">in</span><span class="pln"> drive A has </span><span class="kwd">no</span><span class="pln"> label  </span><span class="com">#加载信息  </span>
<span class="typ">Volume</span> <span class="typ">Serial</span> <span class="typ">Number</span> <span class="kwd">is</span> <span class="lit">13D2</span><span class="pun">~</span><span class="lit">055C</span>  
<span class="typ">Directory</span> <span class="kwd">for</span><span class="pln"> A</span><span class="pun">:</span><span class="pln">\                   </span><span class="com">#以下为目录信息  </span>
<span class="pun">./</span><span class="pln">TEST </span><span class="pun"><</span><span class="pln">DIR</span><span class="pun">></span> <span class="lit">2011</span><span class="pun">-</span><span class="lit">08</span><span class="pun">-</span><span class="lit">23</span> <span class="lit">16</span><span class="pun">:</span><span class="lit">59</span>     
<span class="com">#显示格式为文件名,目录大小,修改时间  </span><span class="pln">
AUTORUN</span><span class="pun">.</span><span class="pln">INF </span><span class="lit">265</span> <span class="lit">2011</span><span class="pun">-</span><span class="lit">08</span><span class="pun">-</span><span class="lit">23</span> <span class="lit">16</span><span class="pun">:</span><span class="lit">53</span><span class="pln">  
AUTORUN</span><span class="pun">.</span><span class="pln">BAT </span><span class="lit">43</span> <span class="lit">2011</span><span class="pun">-</span><span class="lit">08</span><span class="pun">-</span><span class="lit">23</span> <span class="lit">16</span><span class="pun">:</span><span class="lit">56</span>  
<span class="lit">3</span><span class="pln"> files </span><span class="lit">308</span><span class="pln"> bytes               </span><span class="com">#统计总大小  </span>
<span class="lit">724</span> <span class="lit">325</span><span class="pln"> bytes free              </span><span class="com">#剩余空间  </span>

欢迎转载本文:Linux mdir命令
喜欢 (0)
[ld]
分享 (0)
发表我的评论
取消评论
表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址