1. 首页
  2. 宅男

Linux mdir命令

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

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>

原创文章,作者:zzz3,如若转载,请注明出处:https://www.xiaomihost.com/56607.html

发表评论

电子邮件地址不会被公开。 必填项已用*标注

联系我们

400-800-8888

在线咨询:点击这里给我发消息

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息