Latest web development tutorials

Linux mattrib command

Linux mattrib command

Linux command Daquan Linux command Daquan

Linux mattrib command to change or display the properties of MS-DOS files.

mattrib to mtools tool instruction, simulation of MS-DOS attrib command, you can change the properties of MS-DOS files.

grammar

mattrib [-a|+a] [-h|+h] [-r|+r] [-s|+s] [-/] [-X] msdosfile [ msdosfiles ... ]

Parameters:

  • -a / + a remove / backup attribute set.
  • -h / + h removed / hidden attributes set.
  • -r / + r remove / set read-only attribute.
  • -s / + s removed / set system properties.
  • - / Recursive processing file containing all subdirectories.
  • -X In a shorter format output.

Examples

Lists the attributes of all the files on the A slot format MSDOS diskette.

mattrib a: 

A tank was removed on diskette msdos.sys files hidden, system, and read-only attribute.

mattrib -h -s -r a:msdos.sys

A tank was removed on diskette contains the read-only attribute of all files under the subdirectory.

mattrib -r -/ a:*.*

Linux command Daquan Linux command Daquan