hpcopy(1)

hpcopy1

Copy files from an hfs+ volume

Usage

hpcopy [{-m | -b | -t | -r | -a}] source-path ... target-path

Overview

hpcopy copies files and directories from an HFS+ volume. If multiple files are to be copied, the target path must be a directory.

Since Macintosh files contain two forks, which are not representably in Unix file systems, copies use one of several translation modes:

-m

Mac Binary II is a format for binary file transfer. Both forks of the Macintosh file are preserved. This is the recommended mode for transferring arbitrary Macintosh files.

-b

BinHex also preserves both forks of the Macintosh file. In addition, the encoded file contains only ASCII characters, making it suitable for electronic mail transmission.

-t

Text copies only the data fork of the Macintosh file, while the contents of the resource fork are lost. In addition, this mode translates end-of-line characters. This translation should be used for text files.

-r

Raw Data copies only the data fork of the Macintosh file, while the contents of the resource fork are lost.

-a

Automatic mode applies a set of predefined heuristics to determine the appropriate translation. This is the default if no mode is specified.

Releases

12 releases since Debian 3.0 (Woody); the text changed 6 times.

  1. 3.0
  2. 3.1
  3. 4.0–7
  4. 8
  5. 9–10
  6. 11
  7. 12–13

-a since Debian 12 (Bookworm); -b since Debian 12 (Bookworm); -m since Debian 12 (Bookworm); -r since Debian 12 (Bookworm); -t since Debian 12 (Bookworm).

Author

This manual page was written by Jens Schmalzing <[email protected]> for Debian GNU/Linux using the manual page by Klaus Halfmann <[email protected]> that comes with the source code and documentation from the Tech Info Library.

From hfsplus 1.0.4-19 in Debian 13 (Trixie). Parsed by carta from the page's man source.