mattrib (1)
change MSDOS file attribute flags
'\" t
TQ
\(is'
\(if`
\(pd"
Note\ of\ warning
This manpage has been automatically generated from mtools's texinfo
documentation, and may not be entirely accurate or complete. See the
end of this man page for details.
Description
"p mattrib"
"c Changing file attributes"
"c Hidden files"
"c Read-only files (changing the attribute)"
"c System files"
"c Archive bit"
\f(CWMattrib is used to change MS-DOS file attribute flags. It has the
following syntax:
\f(CWmattrib [\f(CW-a|+a] [\f(CW-h|+h] [\f(CW-r|+r]
[\f(CW-s|+s] [\f(CW-/] [\f(CW-p] [\f(CW-X] msdosfile [ msdosfiles ... ]
\f(CWMattrib adds attribute flags to an MS-DOS file (with the
`\f(CW+' operator) or remove attribute flags (with the `\f(CW-'
operator).
\f(CWMattrib supports the following attribute bits:
\f(CWa\
Archive bit. Used by some backup programs to indicate a new file.
\f(CWr\
Read-only bit. Used to indicate a read-only file. Files with this bit
set cannot be erased by \f(CWDEL nor modified.
\f(CWs\
System bit. Used by MS-DOS to indicate a operating system file.
\f(CWh\
Hidden bit. Used to make files hidden from \f(CWDIR.
\f(CWMattrib supports the following command line flags:
\f(CW/\
Recursive. Recursively list the attributes of the files in the subdirectories.
\f(CWX\
Concise. Prints the attributes whithout any whitespace padding. If
neither the "/" option is given, nor the msdosfile contains a
wildcard, and there is only one Msdos file parameter on the command
line, only the attribute is printed, and not the filename. This option
is convenient for scripts
\f(CWp\
Replay mode. Outputs a series of mformat commands that will reproduce
the current situation, starting from a situation as left by untarring
the Dos filesystem. Commands are only output for attribute settings
that differ from the default (archive bit set for files, unset for
directories). This option is intended to be used in addition to
tar. The \f(CWreadonly attribute is not taken into account, as tar can
set that one itself.
See\ Also
Viewing\ the\ texi\ doc
This manpage has been automatically generated from mtools's texinfo
documentation. However, this process is only approximative, and some
items, such as crossreferences, footnotes and indices are lost in this
translation process. Indeed, these items have no appropriate
representation in the manpage format. Moreover, not all information has
been translated into the manpage version. Thus I strongly advise you to
use the original texinfo doc. See the end of this manpage for
instructions how to view the texinfo doc.
* \ \
To generate a printable copy from the texinfo doc, run the following
commands:
3
+0.3i
./configure; make dvi; dvips mtools.dvi
-0.3i
R
* \ \
To generate a html copy, run:
3
+0.3i
./configure; make html
-0.3i
R
A premade html can be found at:
\f(CW\(ifhttp://mtools.linux.lu\(is
and also at:
\f(CW\(ifhttp://www.tux.org/pub/knaff/mtools\(is
* \ \
To generate an info copy (browsable using emacs' info mode), run:
3
+0.3i
./configure; make info
-0.3i
R
The texinfo doc looks most pretty when printed or as html. Indeed, in
the info version certain examples are difficult to read due to the
quoting conventions used in info.
|