Operate X clipboard from command line

ayvango

I'd like to copy and paste to the clipboard from the command line.

I've found two utilities that works with "mouse" selection: xclip and xsel. But they both ignore the clipboard that is filled with Ctrlc in GUI applications. So I may not paste things that were copied in this way.

What command line utility works like xclip or xsel but is compatible with Ctrlc and Ctrlv?

Stephen Kitt

xclip uses the clipboard if you specify -selection clipboard:

xclip -selection clipboard -o

prints the contents of the clipboard (as filled with Ctrl-C in a GUI application).

The equivalent option for xsel is -b (or --clipboard).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

How to open Atom editor from command line in OS X?

From Dev

in MySQL Command Line, how do I paste from the clipboard using only the keyboard?

From Dev

PyInstaller OS X app runs from command line, but not Finder window

From Dev

How to copy one line from a text document to clipboard using command prompt

From Dev

How to edit a file from the command line Mac OS X?

From Dev

Prevent line numbers from being copied to clipboard

From Dev

Copy to clipboard from php command line script in Windows 7

From Dev

Copying files from command line to clipboard

From Dev

A command-line clipboard copy and paste utility?

From Dev

How to copy an image to the clipboard from a file using command line?

From Dev

Copying files from command line to clipboard

From Dev

A command-line clipboard copy and paste utility?

From Dev

How to copy text from command line to clipboard without using the mouse?

From Dev

Accessing MacOS X clipboard from

From Dev

How to start GUI from command line in Android-x86

From Dev

How to copy an image to the clipboard from a file using command line?

From Dev

Command Line Clipboard Access

From Dev

Starting and stopping X11 and LXDE from command line

From Dev

Command-line utility to copy file to clipboard from file path

From Dev

How to send rich text to the clipboard from command line?

From Dev

What is the command line equivalent of copying a file to clipboard?

From Dev

Clipboard for copying and pasting files in command line?

From Dev

How to pipe text from command line to the clipboard

From Dev

How to Send the Contents of a Text File to the Clipboard from the Command Line in OS X?

From Dev

How do command line clipboard tools like "xclip" and "xsel" persist the clipboard - in a X windows environment that doesn't?

From Dev

How to copy a picture to clipboard from command line in linux?

From Dev

Is it possible to copy a variable to the Shift+Insert clipboard from the command line?

From Dev

MacVim copy selection from vim command line shell to MacVim or OS clipboard

From Dev

Using command line to copy html file to clipboard

Related Related

  1. 1

    How to open Atom editor from command line in OS X?

  2. 2

    in MySQL Command Line, how do I paste from the clipboard using only the keyboard?

  3. 3

    PyInstaller OS X app runs from command line, but not Finder window

  4. 4

    How to copy one line from a text document to clipboard using command prompt

  5. 5

    How to edit a file from the command line Mac OS X?

  6. 6

    Prevent line numbers from being copied to clipboard

  7. 7

    Copy to clipboard from php command line script in Windows 7

  8. 8

    Copying files from command line to clipboard

  9. 9

    A command-line clipboard copy and paste utility?

  10. 10

    How to copy an image to the clipboard from a file using command line?

  11. 11

    Copying files from command line to clipboard

  12. 12

    A command-line clipboard copy and paste utility?

  13. 13

    How to copy text from command line to clipboard without using the mouse?

  14. 14

    Accessing MacOS X clipboard from

  15. 15

    How to start GUI from command line in Android-x86

  16. 16

    How to copy an image to the clipboard from a file using command line?

  17. 17

    Command Line Clipboard Access

  18. 18

    Starting and stopping X11 and LXDE from command line

  19. 19

    Command-line utility to copy file to clipboard from file path

  20. 20

    How to send rich text to the clipboard from command line?

  21. 21

    What is the command line equivalent of copying a file to clipboard?

  22. 22

    Clipboard for copying and pasting files in command line?

  23. 23

    How to pipe text from command line to the clipboard

  24. 24

    How to Send the Contents of a Text File to the Clipboard from the Command Line in OS X?

  25. 25

    How do command line clipboard tools like "xclip" and "xsel" persist the clipboard - in a X windows environment that doesn't?

  26. 26

    How to copy a picture to clipboard from command line in linux?

  27. 27

    Is it possible to copy a variable to the Shift+Insert clipboard from the command line?

  28. 28

    MacVim copy selection from vim command line shell to MacVim or OS clipboard

  29. 29

    Using command line to copy html file to clipboard

HotTag

Archive