cpmcp1
Copy files from and to cp/m disks
Usage
cpmcp [-f
format]
[-p]
[-t]
image
[-u]
user:file
file
cpmcp [-f
format]
[-p]
[-t]
image
[-u]
user:file ...
directory
cpmcp [-f
format]
[-p]
[-t]
image
[-u]
file
user:file
cpmcp [-f
format]
[-p]
[-t]
image
[-u]
file ...
user:
Overview
cpmcp copies one or more files to or from a CP/M disk. When copying multiple files, the last argument must be a drive or directory. The drive letter does not matter because the device is specified by the image, it is only used to specify which direction you want to copy. The user number is specified after the drive letter, if omitted user 0 is used.
You can use * and ? in CP/M file names, which have the same meaning in sh(1) file name patterns.
On CP/M, the slash is a legal file name character. When copying such files to the host, it is translated to a comma. Filenames with a comma have that translated back to a slash on CP/M. That is no restriction, because a comma is not a legal CP/M filename character.
Options
-
-f format -
Use the given CP/M disk format instead of the default format.
-
-T libdsk-type -
libdsk driver type, e.g.
telefor Teledisk images orrawfor raw images (requires building cpmtools with support for libdsk).
-
-p -
Preserve time stamps when copying files from CP/M to UNIX (not implemented for copying the other way so far).
-
-t -
Convert text files between CP/M and UNIX conventions.
-
-u -
Show all CP/M file names in upper case.
Return value
Upon successful completion, exit code 0 is returned.
Errors
Any errors are indicated by exit code 1.
Environment
CPMTOOLSFMT Default format
Files
/etc/cpmtools/diskdefs CP/M disk format definitions
Releases
12 releases since Debian 3.0 (Woody); the text changed 8 times.
-T since Debian 9 (Stretch);
-p since Debian 6.0 (Squeeze);
-u since Debian 12 (Bookworm).