PAGES
← all tools
◆ General Utilities & Libraries

xclip

open-source

Command line interface to the X11 clipboard

Summary

xclip is an open-source command-line utility that gives shell scripts and terminal users access to the X11 clipboard, reading from stdin or a file and writing to or reading from the primary, secondary, or clipboard X selections. It runs as a small command-line tool rather than a GUIGUIA graphical user interface, controls such as windows, buttons and menus. It lets people use software visually rather than entering commands. applet, invoked directly or piped into other commands, which makes it a fit for Linux users automating copy-paste tasks or scripting clipboard interaction from shell pipelines. It sits in the category of X11 desktop utilities alongside things like xdotool, doing one narrow job rather than bundling clipboard management features. First committed in 2007 with 17 contributors, it has had no commits in the past year, so it should be treated as stable but no longer actively maintained.

Command line interface to the X11 clipboard

How xclip helps

How do I get command output into another program's paste buffer without a temp file?

pipes standard input straight into the primary, secondary, or clipboard X selection so the next paste anywhere picks it up

How do I pull what's on the clipboard into a script or a file?

prints the contents of the chosen X selection to standard out, ready to redirect into a file or feed to another command

How do I get a large file's contents into an application that only accepts pasted text?

reads the file directly and loads it into an X selection, avoiding manual copy from an editor or terminal

How do I move the primary selection into the clipboard selection so a keyboard paste works?

reads from the primary selection with output mode and writes it back in through input mode targeted at the clipboard selection

How do I hand a file to another machine or directory using only the clipboard mechanism, not scp or cp?

the companion copy, paste, and cut file commands wrap the same X selection mechanism to transfer whole files and directory trees between X sessions, preserving path structure when asked

How do I copy a block of text out of an editor buffer without touching the mouse?

invoked from within the editor's command mode as a filter over the selected lines, it takes them on standard input and places them into the primary selection

all 5 features, with the evidence for each →

Languages

Not documented

Features

5 capabilities

Built from xclip's releases, docs, README and our own runs. “Seen” marks the month we first spotted a release the vendor didn't date. Group names and tags are our labels.

Compare with peers →

What xclip offers you

  • Command-line interface2
All capabilities 5 capabilities
X11 clipboard text transfer shipped Copy text content from stdin or files to X11 primary, secondary, and clipboard selections. 5 other sources

Also counts toward: Command-line interface

docs

  • Conversation tricktron commented Mar 13, 2026 Copy link Copy Markdown Summary Fixes #90 Fixes #92 Fixes #163 xclip was silently failing clipboard transfers for X11 consumers (VMware vmtoolsd, Citrix ICA, rdesktop) that send TIMESTAMP target requests. seen Oct 2026 · source
  • Name: xclip Version: 0.13 Release: 1%{?dist} License: GPLv2+ Group: Applications/System Summary: Command line clipboard grabber URL: https://github.com/astrand/xclip Source0: https://github.com/astrand/xclip/archive/%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)… seen Aug 2026 · source
  • 79 Name: Version: 0.13 Release: 1%{? dist } License: GPLv2+ Group: Applications/System Summary: Command line clipboard grabber URL: https://github.com/astrand/xclip Source0: https://github.com/astrand/xclip/archive/%{ version }.tar.gz BuildRoot: %{ _tmppath }/%{ name }-%{ version }-%{ release }-root-%(%{__id_u} -n)… seen Aug 2026 · source
  • Command-line interface to X11 clipboard selections, reading from stdin or files and writing to or from X selections.

example

  • Copy file contents to clipboard xclip /etc/passwd
Open source distribution documented Distributed under the GNU General Public License with public source code hosting. 4 other sources

docs

  • Compare changes Compare changes across branches, commits, tags, and more below. If you need to, you can also base repository: astrand/xclip Failed to load repositories. Confirm that selected base ref is valid, then try again. seen Oct 2026 · source
  • .\"· .\" xclip-copyfile.1 .\" Copyright (C) 2009 Maximilian Gass .\" This program is free software; you can redistribute it and/or modify .\" it under the terms of the GNU General Public License as published by .\" the Free Software Foundation; either version 2 of the License, or .\" (at your option) any later… seen Oct 2026 · source
  • · xclip-copyfile.1 Copyright (C) 2009 Maximilian Gass This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. seen Aug 2026 · source
  • astrand / xclip Public Notifications You must be signed in to change notification settings Fork 79 Star 1.3k Branch selector User selector Commit history Commits on Jan 9, 2025 Merge pull request #160 from astrand/jer-merge-fixes Show description for 2c3b811 quartzjer authored 2c3b811 Copy full SHA for 2c3b811 fix… seen Aug 2026 · source
X11 clipboard file copy with path preservation shipped Copy directory trees to the clipboard while preserving file path structures. 3 other sources

docs

  • #! /bin/sh set -e if [ " x $1 " = " x " ] ; then echo " Usage: [options] $0 file... " >&2 echo " -p Copy path information; preserve tree structure " exit archive= mktemp || exit trap ' rm -f "${archive}" ' 1 2 3 15 if [ " x $1 " = " x-p " ] ; then tar cf " ${archive} " " $@ " flags= " cf " for file in " $@ " ; do… seen Sep 2026 · source
  • #!/bin/sh set -e if [ x$1 = x ]; then echo "Usage: [options] $0 file..." >&2 echo "-p Copy path information; preserve tree structure" exit 1 archive=mktemp || exit 1 trap rm -f "${archive}" 1 2 3 15 if [ x$1 = x-p ]; then tar cf ${archive} "$@" flags="cf" for file in "$@"; do filedir=dirname "${file}"… seen Aug 2026 · source

example

  • Copy file preserving path information xclip-copyfile -p /etc/sysconfig/grub
X11 selection management shipped Directly manipulate X11 primary and secondary selections via command-line options. 2 other sources

Also counts toward: Command-line interface

docs

  • Conversation erikd234 commented Jan 20, 2024 Copy link Copy Markdown This commit introduces two new command-line shortcuts for the xclip utility. The -s shortcut has been added for the --selection option, allowing users to specify the X selection (primary, clipboard, secondary, or buffer-cut) more conveniently. seen Oct 2026 · source

example

  • Copy primary selection to clipboard xclip -o | xclip -sel clip
X11 clipboard file save shipped Save the contents of X11 clipboard selections to files. 1 other source

example

  • Save clipboard contents to file xclip -o -sel clip > webpage.txt

Lines in monospace are the tool's own words: help text parsed from its source, or an endpoint from its API document. Under release, a line is our summary of a dated release. Under docs, it is quoted from the tool's own documentation or website. Each links back to the source it came from.

Score card

  1. Shipping velocity releases a month, last 12 months
  2. Documentation quality release-notes rubric, 0–100
  3. Breaking-change discipline how rarely a release breaks users, and notice given
  4. Maintenance risk quiet time against its own cadence, maintainers
  5. Innovation & surface new capabilities, API and MCP surface
  6. Community health
  7. Contributor trend distinct committers, this year against last
  8. Maintainer concentration bus factor now against a year ago
  9. Issue backlog trend issues closed per issue opened, 12 months
  10. Responsiveness median time to a maintainer’s first reply

Nine scores for xclip, each built from the releases, notes and API history this site tracks — and, on Researcher and Business, where it stands among every measured tool in its category and how that has moved.

Score cards are part of every paid plan.

See plans →

Each score is 0–100 on a published rubric, derived from data this site already shows. A dimension we cannot measure says so — it is never scored 0 and never enters a rank.

How this is scored
  • Shipping velocity — releases a month over the last 12 months, on a log scale where 16 a month scores 100. Needs 3 releases in the window.
  • Documentation quality — the release-notes rubric published on the analytics page, unchanged.
  • Breaking-change discipline — the share of releases carrying a breaking change (none scores 100, half or more scores 0). Only projects that label breaking changes are measured: a clean record cannot be told from an unlabelled one.
  • Maintenance risk — quiet time measured against the tool's own release cadence (quiet longer than 90 days and three typical gaps scores 0), plus the number of active maintainers and whether contributors are growing, where known. Higher is lower risk.
  • Innovation & surface — new capabilities in the feature ledger this year, API and MCP operations added, and the share of commits that are features: the mean of whichever we hold.
  • Community health (open-source tools only) — each is a direction, not a size: contributors this year against last, the bus factor now against a year ago, and issues closed per issue opened, where steady scores 50, doubled 100 and halved 0; plus the median time to a maintainer's first reply (an hour scores about 100, a month or more 0). A commercial card has no repository and carries none of the four.
  • Documented delivery (commercial tools) — when a vendor's documented new capabilities have slowed against its own baseline, that counts against the overall standing as heavily as two low dimensions. Steady delivery, or too little history to judge, leaves the standing alone; it is never a sixth score.
  • Open-source tools are scored on repository signals; commercial tools on their published changelog. Ranks compare tools within one category and one profile and need at least five measured peers; the overall standing needs three ranked dimensions. Best-in-breed or consolidator is a shape, not a quality, and is never scored.

Release-note detail over time

See how much detail xclip puts in its release notes, quarter by quarter, and compare it with tracked tools in the same category. This history uses up to ten retained, reviewed notes per tool; sparse or blank older quarters may reflect that limit.

Checking release-note history…

Explore the full chart →

Releases

Show

1 entry

  1. October 20261
    Show

    1 entry

    Project health

    Issue, contributor and maintainer activity in astrand/xclip, 2023-10 – 2026-09, as of 2026-09-25. Twelve-month figures first; the trend lines run the whole window.

    1. Contributors 0 −3 vs prior 12 months
    2. Maintainers 0 +0 joined · −0 left, last 12 months
    3. Bus factor 0 committers behind half the commits
    4. Community-filed 100% of issues opened, last 12 months
    5. Median time to close 196 days first maintainer reply 14 hours
    6. Open backlog 73 of 114 issues ever filed
    1. Issues opened / month 0 · 0 communitymaintainers
    2. Open backlog 73
    3. Contributors / month 0
    4. Commits / month 0
    5. Stars 1,325
    Issue themes, last 12 months
    • other 100%

    Counts from the project's public repository and git history; no individuals are identified. Maintainers are the committers covering 80% of the last year's commits. how we measure this

    Libraries its release ships

    What its latest release locks, checked against known advisories.

    None of its release's images build from a lockfile we can read.

    Add the badge to your README

    Maintain this project? The badge links readers straight to this page, so they can follow every release here.

    Tracked by Cyber Toolchain Choose a badge style and copy the code →
    browse all tools → score card for your toolchain →