2 .TH mattrib 1 "19Jun21" mtools-4.0.31
4 mattrib - change MSDOS file attribute flags
17 This manpage has been automatically generated from mtools's texinfo
18 documentation, and may not be entirely accurate or complete. See the
19 end of this man page for details.
23 \&\fR\&\f(CWMattrib\fR is used to change MS-DOS file attribute flags. It has the
26 \&\fR\&\f(CWmattrib\fR [\fR\&\f(CW-a|+a\fR] [\fR\&\f(CW-h|+h\fR] [\fR\&\f(CW-r|+r\fR]
27 [\fR\&\f(CW-s|+s\fR] [\fR\&\f(CW-/\fR] [\fR\&\f(CW-p\fR] [\fR\&\f(CW-X\fR] \fImsdosfile\fR [ \fImsdosfiles\fR \&... ]
29 \&\fR\&\f(CWMattrib\fR adds attribute flags to an MS-DOS file (with the
30 `\fR\&\f(CW+\fR' operator) or remove attribute flags (with the `\fR\&\f(CW-\fR'
33 \&\fR\&\f(CWMattrib\fR supports the following attribute bits:
36 Archive bit. Used by some backup programs to indicate a new file.
39 Read-only bit. Used to indicate a read-only file. Files with this bit
40 set cannot be erased by \fR\&\f(CWDEL\fR nor modified.
43 System bit. Used by MS-DOS to indicate a operating system file.
46 Hidden bit. Used to make files hidden from \fR\&\f(CWDIR\fR.
48 \&\fR\&\f(CWMattrib\fR supports the following command line flags:
51 Recursive. Recursively list the attributes of the files in the subdirectories.
54 Concise. Prints the attributes without any whitespace padding. If
55 neither the "/" option is given, nor the \fImsdosfile\fR contains a
56 wildcard, and there is only one MS-DOS file parameter on the command
57 line, only the attribute is printed, and not the filename. This option
58 is convenient for scripts
61 Replay mode. Outputs a series of \fR\&\f(CWmformat\fR commands that will
62 reproduce the current situation, starting from a situation as left by
63 untarring the MS-DOS file system. Commands are only output for
64 attribute settings that differ from the default (archive bit set for
65 files, unset for directories). This option is intended to be used in
66 addition to tar. The \fR\&\f(CWreadonly\fR attribute is not taken into
67 account, as tar can set that one itself.
71 .SH Viewing\ the\ texi\ doc
72 This manpage has been automatically generated from mtools's texinfo
73 documentation. However, this process is only approximative, and some
74 items, such as crossreferences, footnotes and indices are lost in this
75 translation process. Indeed, these items have no appropriate
76 representation in the manpage format. Moreover, not all information has
77 been translated into the manpage version. Thus I strongly advise you to
78 use the original texinfo doc. See the end of this manpage for
79 instructions how to view the texinfo doc.
82 To generate a printable copy from the texinfo doc, run the following
88 ./configure; make dvi; dvips mtools.dvi
97 To generate a html copy, run:
102 ./configure; make html
108 \&\fRA premade html can be found at
109 \&\fR\&\f(CW\(ifhttp://www.gnu.org/software/mtools/manual/mtools.html\(is\fR
112 To generate an info copy (browsable using emacs' info mode), run:
117 ./configure; make info
125 The texinfo doc looks most pretty when printed or as html. Indeed, in
126 the info version certain examples are difficult to read due to the
127 quoting conventions used in info.