1mattrib(1)                  General Commands Manual                 mattrib(1)
2
3
4

Name

6       mattrib - change MSDOS file attribute flags
7
8
9

Note of warning

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

Description

16       Mattrib  is used to change MS-DOS file attribute flags. It has the fol‐
17       lowing syntax:
18
19       mattrib [-a|+a] [-h|+h] [-r|+r] [-s|+s] [-/]   [-p]  [-X]  msdosfile  [
20       msdosfiles ... ]
21
22       Mattrib  adds attribute flags to an MS-DOS file (with the `+' operator)
23       or remove attribute flags (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
49              reproduce the current situation, starting from  a  situation  as
50              left  by  untarring  the  MS-DOS file system.  Commands are only
51              output for attribute settings that differ from the default  (ar‐
52              chive bit set for files, unset for directories).  This option is
53              intended to be used in addition to tar. The  readonly  attribute
54              is not taken into account, as tar can set that one itself.
55

See Also

57       Mtools' texinfo doc
58

Viewing the texi doc

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.13                       28Feb10                         mattrib(1)
Impressum