v1.1.0
copy v1.1.0
A small, dependency-free CLI tool that pipes stdin to the system clipboard,
automatically detecting X11, Wayland, WSL, macOS, or Termux backends.
Installation
Debian, Ubuntu, Mint, Pop!_OS (amd64):
sudo dpkg -i copy_1.1.0_amd64.deb
sudo apt-get install -fAny other distribution (build from source):
git clone https://github.com/MaxEdgar/copy.git
cd copy
make
sudo make installWhat's new in this release
-n, --lines N— copy only the last N lines of input, liketail -n-c, --chars N— copy only the last N characters of input-p, --print— also print the copied text to stdout, to verify it-k, --keep-newline— preserve a trailing newline (stripped by default)-h, --helpand-v, --versionflags- Manual page:
man copy - Input buffer now grows dynamically instead of using a fixed cap, with
a 512 MB safety ceiling to prevent unbounded memory use. If ever
reached,copyerrors out and copies nothing rather than silently
truncating input - Fixed a bug where a crashed or early-exiting clipboard backend could
kill the process viaSIGPIPEinstead of failing gracefully
Full changelog: see CHANGELOG.md
Usage
echo hello | copy
cat notes.txt | copy
tail -f app.log | copy -n 20
dmesg | copy -c 500 -pLicense
MIT