LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

pcp

Peer-to-peer file copy over the local network

TLDR

Copy a file/directory to another machine running pcp
$ pcp [path]
copy
Receive / wait for incoming copy (peer mode)
$ pcp
copy
Specify a peer explicitly if auto-discovery fails
$ pcp --peer [host] [path]
copy

SYNOPSIS

pcp [*options*] [*path*]

DESCRIPTION

pcp (peer copy) transfers files between machines on a LAN using peer discovery instead of scp hostnames and keys for casual copies. One side advertises/receives; the other pushes a path. Implemented in Go; install via go install, Homebrew, or releases from dennis-tra/pcp.Not related to the Performance Co-Pilot toolkit (also abbreviated PCP).

PARAMETERS

*path*

File or directory to send.
--peer *address*
Target peer when mDNS/discovery is unavailable.
-h, --help
Full option set (ports, codes, UI).

INSTALL

sudo apt install pcp
copy
sudo dnf install pcp
copy
sudo pacman -S pcp
copy
sudo zypper install pcp
copy
brew install pcp
copy

CAVEATS

Designed for trusted local networks—do not expose on untrusted links without understanding the threat model. Firewall/mDNS restrictions can block discovery. Name clash with Performance Co-Pilot commands on some systems.

SEE ALSO

scp(1), rsync(1), croc(1), magic-wormhole(1)

RESOURCES

Copied to clipboard
Kai