doschmod(1) | doschmod(1) |
NAME
doschmod - change attributes of a DOS ®le
SYNOPSIS
doschmod
DESCRIPTION
doschmod is the DOS counterpart of chmod (see chmod(1)).
Options
doschmod recognizes one option:
A DOS ®le name is recognized by the presence of an embedded colon (:) delimiter; see dosif(4) for DOS ®le naming conventions.
Metacharacters *, ?, and [ ... ] can be used when specifying DOS ®le names. These must be quoted when specifying a DOS ®le name, because ®le name expansion must be performed by the DOS utilities, not by the shell. DOS utilities expand ®le names as described in regexp(5) under PATTERN MATCHING NOTATION.
The attributes of each named ®le are changed according to mode, which is an octal number in the range 000 to 0377. mode is constructed from the logical OR of the following modes:
200Reserved. Do not use.
100Reserved. Do not use.
040Archive. Set whenever the ®le has been written to and closed.
020Directory. Do not modify.
010Volume Label. Do not modify.
004System ®le. Marks ®les that are part of the DOS operating system.
002Hidden ®le. Marks ®les that do not appear in a DOS directory listing using the DOS DIR command.
001
WARNINGS
Specifying inappropriate mode values can make ®les and/or directories inaccessible, and in certain cases can damage the ®le system. To prevent such problems, do not change the mode of directories and volume labels.
Normal users should have no need to use mode bits other than 001, 002, and 040.
EXAMPLES
Mark ®le /dev/rfd9122:memo.txt as a hidden ®le:
doschmod 002 /dev/rfd9122:memo.txt
Mark ®le driveC:autoexec.bat
doschmod 001 driveC:autoexec.bat
SEE ALSO
chmod(1), dos2ux(1), doscp(1), dosdf(1), dosls(1), dosmkdir(1), dosrm(1), chmod(2), dosif(4).
d
− 1 − | Section 1−187 |