1CPMCHATTR(1) User commands CPMCHATTR(1)
2
3
4
6 cpmchattr - change file attributes on CP/M files
7
9 cpmchattr [-f format] image attrib file-pattern ...
10
12 Cpmchattr changes the file attributes for files on CP/M disks.
13
15 -f format
16 Use the given CP/M disk format instead of the default format.
17
18 attrib Set the file attributes as given.
19
21 The file attribute string can contain the characters 1,2,3,4,r,s,a,n
22 and m. The meanings of these are:
23
24 1-4 The CP/M "user attributes" F1-F4. CP/M does not assign any
25 meaning to these attributes, though MP/M does.
26
27 r The file is read-only. This is the same as using cpmchmod(1) to
28 revoke write permissions.
29
30 s The file is a system file. This attribute can also be set by
31 cpmchmod(1).
32
33 a The file has been backed up.
34
35 n Reset all attributes to zero. So the string "n1r" resets all
36 attributes and then sets F1 and Read-Only.
37
38 m Attributes after an m are unset rather than set. The string
39 "12m34" sets atttributes F1 and F2, and unsets F3 and F4.
40
42 Upon successful completion, exit code 0 is returned.
43
45 Any errors are indicated by exit code 1.
46
48 /usr/share/cpmtools/diskdefs CP/M disk format definitions
49
51 This program is copyright 1997–2009 Michael Haardt <michael@moria.de>
52 and copyright 2000, 2001 John Elliott <jce@seasip.demon.co.uk>.
53
54 This program is free software; you can redistribute it and/or modify it
55 under the terms of the GNU General Public License as published by the
56 Free Software Foundation; either version 3 of the License, or (at your
57 option) any later version.
58
59 This program is distributed in the hope that it will be useful, but
60 WITHOUT ANY WARRANTY; without even the implied warranty of MER‐
61 CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
62 Public License for more details.
63
64 You should have received a copy of the GNU General Public License along
65 with this program. If not, write to the Free Software Foundation,
66 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
67
69 cpmls(1), cpmchmod(1), cpm(5)
70
71
72
73CP/M tools December 20, 2009 CPMCHATTR(1)