CPMCHATTR(1)
π CPMCHATTR(1) β the user-commands girlies' fave π
okay so bestie, welcome to the cpmchattr page, manual section 1 (user commands, obvs) π this is the lil tool that changes file attributes on CP/M files. no cap.
β¨ NAME β¨
cpmchattr β change file attributes on CP/M files π¦
β¨ SYNOPSIS β¨
cpmchattr [-f format] [-u] image attrib file-pattern ...
β¨ DESCRIPTION β¨
Cpmchattr changes the file attributes for files on CP/M disks. that's it, that's the whole vibe. you point it at a disk image, you tell it which attributes you want, you say which files, and it goes off and does the thing π
β¨ OPTIONS β¨
-fformat β use the given CP/M disk format instead of the default format. main character energy: you pick, not the default.-Tlibdsk-type β libdsk driver type, liketelefor Teledisk images orrawfor raw images. β οΈ requires building cpmtools with support for libdsk, so if it's not there it's just not there, sorry bestie π«Ά-uβ show all CP/M file names in UPPER CASE. like she's yelling, but politely πattribβ set the file attributes as given. this is the actual instruction, the moment, the point.
β¨ FILE ATTRIBUTES β¨
the file attribute string can contain the characters 1, 2, 3, 4, r, s, a, n and m. here's what each one means, no gatekeeping π₯
1β4β the CP/M "user attributes"F1βF4. CP/M does not assign any meaning to these attributes, though MP/M does. so like, CP/M is chill about them, MP/M is the one with opinions πrβ the file is read-only. this is the same as using cpmchmod(1) to revoke write permissions.sβ the file is a system file. this attribute can also be set by cpmchmod(1).aβ the file has been backed up. β¨nβ reset all attributes to zero. so the string"n1r"resets all attributes and then setsF1and Read-Only. iconic combo honestly.mβ attributes after anmare unset rather than set. the string"12m34"sets atttributesF1andF2, and unsetsF3andF4.
note the vibe: everything before the m is getting turned ON, everything after it is getting turned OFF. it's giving switch π§
β¨ RETURN VALUE β¨
upon successful completion, exit code 0 is returned. slay. β¨
β¨ ERRORS β¨
any errors are indicated by exit code 1. π
β¨ ENVIRONMENT β¨
CPMTOOLSFMTβ default format πΈ
β¨ FILES β¨
/etc/cpmtools/diskdefsβ CP/M disk format definitions π
β¨ AUTHORS β¨
this program is copyright 1997β2021 Michael Haardt <michael@moria.de> and copyright 2000, 2001, 2011 John Elliott <jce@seasip.demon.co.uk>. absolute legends, fr fr π
this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details.
you should have received a copy of the GNU General Public License along with this program. if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. π
β¨ SEE ALSO β¨
and that's the whole page bestie, mwah π this one came from the CP/M tools collection, dated November 2, 2022, and it lives at the top of its own little manual page as CPMCHATTR(1) π go forth and change those attributes, you've got this πβ¨
π¦ where this page comes from
- debian bookworm: cpmtools 2.23-4
- debian trixie: cpmtools 2.23-7
- ubuntu noble: cpmtools 2.23-5build1
- ubuntu questing: cpmtools 2.23-7
- ubuntu resolute: cpmtools 2.23-7build1
- ubuntu stonking: cpmtools 2.23-7build1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms