How to use the Linux mdir command

Source: Internet
Author: User

Mdir is the mtools tool command that simulates the dir command of the MS-DOS to display contents of directories in the MS-DOS file system.

Syntax

Mdir [-afwx/] [Directory]

Parameters:

  • -/Display all subdirectories and files in the directory.
  • -A: hide the file.
  • -F does not display the remaining available space on the disk.
  • -W only displays the directory or file name and displays it in a horizontal layout so that a large number of directories or files can be displayed at a time.
  • -X only displays the complete paths of all subdirectories and files in the directory. No other information is displayed.

Instance

Show content in disk

$ Mdir-/:\*

After the preceding command is executed, mdir displays all the subdirectories in the specified disk "a: \" and their file information, as shown below:

Volume in drive A has no label # load information

Volume Serial Number is 13D2 ~ 055C

Directory forA: \ # Directory information

./TEST <DIR>

# Display format: file name, directory size, modification time

AUTORUN. INF 265

AUTORUN. BAT 43

3 files 308 bytes # Total statistics size

724 325 bytes free # available space

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.