AptLynx

Command-line tool

xclip

brew/xclip

Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev

Access X11 clipboards from the command-line

At a glance

Type
Command-line tool
Install on
macOS, Linux
Last checked
25 Oct 2026, 21:09 UTC

Install it

macOS

brew install xclip

Linux

brew install xclip

Copy the output from a command to the X11 primary selection area (clipboard)

echo 123 | xclip

Copy the output from a command to a given X11 selection area

echo 123 | xclip -se primary

Copy the output from a command to the system clipboard, using short notation

echo 123 | xclip -se c

Related command-line tools

Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents