1CPMCHATTR(1)                     User commands                    CPMCHATTR(1)
2
3
4

NAME

6       cpmchattr - change file attributes on CP/M files
7

SYNOPSIS

9       cpmchattr [-f format] [-u] image attrib file-pattern ...
10

DESCRIPTION

12       Cpmchattr changes the file attributes for files on CP/M disks.
13

OPTIONS

15       -f format
16              Use the given CP/M disk format instead of the default format.
17
18       -T libdsk-type
19              libdsk driver type, e.g. tele for Teledisk images or raw for raw
20              images (requires building cpmtools with support for libdsk).
21
22       -u     Show all CP/M file names in upper case.
23
24       attrib Set the file attributes as given.
25

FILE ATTRIBUTES

27       The file attribute string can contain  the  characters  1,2,3,4,r,s,a,n
28       and m.  The meanings of these are:
29
30       1-4    The  CP/M  "user  attributes"  F1-F4.   CP/M does not assign any
31              meaning to these attributes, though MP/M does.
32
33       r      The file is read-only.  This is the same as using cpmchmod(1) to
34              revoke write permissions.
35
36       s      The  file  is  a system file.  This attribute can also be set by
37              cpmchmod(1).
38
39       a      The file has been backed up.
40
41       n      Reset all attributes to zero.  So the string  "n1r"  resets  all
42              attributes and then sets F1 and Read-Only.
43
44       m      Attributes  after  an  m  are unset rather than set.  The string
45              "12m34" sets atttributes F1 and F2, and unsets F3 and F4.
46

RETURN VALUE

48       Upon successful completion, exit code 0 is returned.
49

ERRORS

51       Any errors are indicated by exit code 1.
52

ENVIRONMENT

54       CPMTOOLSFMT    Default format
55

FILES

57       /usr/share/cpmtools/diskdefs  CP/M disk format definitions
58

AUTHORS

60       This program is copyright 1997–2021 Michael  Haardt  <michael@moria.de>
61       and copyright 2000, 2001, 2011 John Elliott <jce@seasip.demon.co.uk>.
62
63       This program is free software; you can redistribute it and/or modify it
64       under the terms of the GNU General Public License as published  by  the
65       Free  Software Foundation; either version 3 of the License, or (at your
66       option) any later version.
67
68       This program is distributed in the hope that it  will  be  useful,  but
69       WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of MER‐
70       CHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU  General
71       Public License for more details.
72
73       You should have received a copy of the GNU General Public License along
74       with this program.  If not, write  to  the  Free  Software  Foundation,
75       Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
76

SEE ALSO

78       cpmls(1), cpmchmod(1), cpm(5)
79
80
81
82CP/M tools                     November 2, 2022                   CPMCHATTR(1)
Impressum