1mattrib(1) General Commands Manual mattrib(1)
2
3
4
6 mattrib - change MSDOS file attribute flags
7
8
9
11 This manpage has been automatically generated from mtools's texinfo
12 documentation, and may not be entirely accurate or complete. See the
13 end of this man page for details.
14
16 Mattrib is used to change MS-DOS file attribute bits. It has the fol‐
17 lowing syntax:
18
19 mattrib [-a|+a] [-h|+h] [-r|+r] [-s|+s] [-/] [-p] [-X] msdosfile [ ms‐
20 dosfiles ... ]
21
22 Mattrib adds attribute bits to an MS-DOS file (with the `+' operator)
23 or remove attribute bits (with the `-' operator).
24
25 Mattrib supports the following attribute bits:
26
27 a Archive bit. Used by some backup programs to indicate a new
28 file.
29
30 r Read-only bit. Used to indicate a read-only file. Files with
31 this bit set cannot be erased by DEL nor modified.
32
33 s System bit. Used by MS-DOS to indicate a operating system file.
34
35 h Hidden bit. Used to make files hidden from DIR.
36
37 Mattrib supports the following command line flags:
38
39 / Recursive. Recursively list the attributes of the files in the
40 subdirectories.
41
42 X Concise. Prints the attributes without any whitespace padding.
43 If neither the "/" option is given, nor the msdosfile contains a
44 wildcard, and there is only one MS-DOS file parameter on the
45 command line, only the attribute is printed, and not the file‐
46 name. This option is convenient for scripts
47
48 p Replay mode. Outputs a series of mformat commands that will re‐
49 produce the current situation, starting from a situation as left
50 by untarring the MS-DOS file system. Commands are only output
51 for attribute settings that differ from the default (archive bit
52 set for files, unset for directories). This option is intended
53 to be used in addition to tar. The readonly attribute is not
54 taken into account, as tar can set that one itself.
55
57 Mtools' texinfo doc
58
60 This manpage has been automatically generated from mtools's texinfo
61 documentation. However, this process is only approximative, and some
62 items, such as crossreferences, footnotes and indices are lost in this
63 translation process. Indeed, these items have no appropriate represen‐
64 tation in the manpage format. Moreover, not all information has been
65 translated into the manpage version. Thus I strongly advise you to use
66 the original texinfo doc. See the end of this manpage for instructions
67 how to view the texinfo doc.
68
69 * To generate a printable copy from the texinfo doc, run the fol‐
70 lowing commands:
71
72 ./configure; make dvi; dvips mtools.dvi
73
74
75
76 * To generate a html copy, run:
77
78 ./configure; make html
79
80 A premade html can be found at `http://www.gnu.org/software/mtools/man‐
81 ual/mtools.html'
82
83 * To generate an info copy (browsable using emacs' info mode),
84 run:
85
86 ./configure; make info
87
88
89
90 The texinfo doc looks most pretty when printed or as html. Indeed, in
91 the info version certain examples are difficult to read due to the
92 quoting conventions used in info.
93
94mtools-4.0.43 21Mar23 mattrib(1)