A clipboard is a temporary storage, mostly related to text, from where contents can be pasted to a new/other location. Use this tag for questions that specifically involve problems with putting material in, or getting material out of the clipboard

learn more… | top users | synonyms (1)

0
votes
0answers
41 views

Data gets lost while trying to copy text into a shell [duplicate]

System is Scientific Linux 7.2 with Mate Desktop. I am trying to copy an iptables-script from website https://www.pozzo-balbi.com/help/Iptables-script to a shell, which will create a file. It is the ...
1
vote
1answer
22 views

Double click selection in Gnome Terminal

Double clicking on a word in gnome terminal selects the whole word. Unfortunately, this selection doesn't include colons such that URLs aren't completely selected, e.g. with http://foo.example.org/ ...
1
vote
1answer
34 views

Copying current command line to clipboard [duplicate]

In bash with set -o vi, I use bind '"\C-]":"\C-[A\C-u cb <<"EOF"\n\C-y\nEOF\n"' to make ^] in insert mode cat the current line to my clipboard wrapper (cb). How do I emulate this in zsh (...
1
vote
0answers
24 views

SECONDARY clipboard [duplicate]

I know that X has three clipboards. How do I use the SECONDARY clipboard? Is there a shortcut for copying/pasting from it?
1
vote
1answer
47 views

Commands pasted into bash not recorded in history [duplicate]

From time to time I find that when I copy/paste a command from a web page (or from the Terminal window itself) the pasted command is not recorded in bash history. For example, just now I did this: cd ...
2
votes
1answer
48 views

Pasting text in zsh in vi mode

I changed input mode in zsh to vi with set -o vi, but that created problems with pasting text. While trying to do cmd-v (MacOS) in the insert mode, zsh is pasting only a fraction of the clipboard ...
0
votes
0answers
16 views

urxvt, vim and X clipboard [duplicate]

I would like to setup my rxvt-unicode with the following behavior Be able to paste primary clipboard with the keyboard (whatever combination is normally used) Copy selected text to primary clipboard ...
3
votes
2answers
67 views

Keyboard shortcut to paste selected text to SECONDARY clipboard

I am aware that mouse selection and CTRL+C adds content to the PRIMARY and CLIPBOARD X Selections but I need a keyboard shortcut(or mouse) to have the selected text in SECONDARY Selection. Any leads ...
1
vote
1answer
53 views

Trying to copy/paste long script with multiple EOFs, Terminal starts running half-way through

Was trying to create a text block that I could just copy and paste into a Terminal window to accomplish something (in this case, create a systemd script to do maintenance on MySQL dbs, create a timer ...
0
votes
1answer
56 views

Get clipboard history in openSUSE Tumbleweed or Leap 42.1

I am looking to access items (text) I have previously copied to the clipboard in KDE (openSUSE). I haven't restarted the system since the items were copied. Is there any way of accessing the ...
3
votes
1answer
59 views

Solus 1.1 adding bidirectional clipboard

I have Solus 1.1 installed in VirtualBox (host Ubuntu 14.04). I managed to install the guest additions using https://wiki.solus-project.com/VirtualBox, but at it says: Installing graphics ...
3
votes
3answers
520 views

How to copy all the text of a nano editor file to windows clipboard?

I am connected from windows to linux using Putty. I have a file result.csv I want to copy all the text from this file to windows clipboard and then paste the text to a notepad? Please help me.
1
vote
0answers
15 views

Is it possible to change the order of items in Parcellite's persistent clipboard?

Is it possible to organize the items on Parcellite's persistent clipboard? I tried moving items from the persistent clipboard back to the normal clipboard, and then back to the persistent clipboard, ...
0
votes
0answers
21 views

xfreerdp + plugin cliprdr often causes freezed workjob

I'm using the following freerdp command to connect to a Windows Server 2008 R2: xfreerdp --plugin cliprdr --no-nla -g 1600x850 10.0.0.XXX My main problem is: Very often when I connect, the picture ...
1
vote
2answers
24 views

How to copy from an app like a browser into Emacs over existing text?

I am trying to copy some text from the browser by highlighting it. I then go to emacs and want to paste over an existing paragraph without deleting it beforehand. How do you do that?
0
votes
0answers
75 views

How to copy from putty and paste in another program

I'm using putty in Centos in order to connect to another Centos server. The copy/paste functions of putty in Centos is weird! I tried to select text to copy text and right click to paste it. The copy ...
3
votes
3answers
81 views

Can the Bash shell “Ignore” Excess copy-paste text?

Say, I have a "Quick&Dirty" Perl script in a gui text editor, and I start the Perl interpreter in a terminal window which is running Bash. I can copy-paste the Perl script to the terminal & ...
1
vote
1answer
84 views

copy&paste in zsh

I've build myself this little script for zsh, to copy & paste within zsh to the system clipboard (basically got everything from here: zsh copy and paste like emacs) x-yank() { zle copy-region-...
1
vote
1answer
16 views

zsh jump to the end of copy from X clipboard

I would like to get Ctrl + V and Ctrl + X to paste / copy from zsh to X11. I found the following snippet to work but zsh does not jump to the character after paste. How could I do that. copy-to-...
1
vote
0answers
55 views

Can I copy output from sage to my clipboard?

I run sage from the terminal. One nice feature of sage is that it can automatically latex-ify results. I would like to be able to pipe these results to my clipboard (I run Ubuntu 14.04). I have ...
0
votes
1answer
61 views

Where is the clipboard file located? [closed]

Where in the file system is the file containing the content of the clipboard? If there is no file, then how is the clipboard maintained?
0
votes
2answers
70 views

How can I copy the output of a command in the terminal to my clipboard? [duplicate]

I have a script that operates on enormous files and outputs an enormous amount of content (almost 7000 lines). I need to copy the output of this to my clipboard so I can then paste it into paste2.org ...
1
vote
2answers
77 views

Who stores copy/paste buffers in X11?

When a piece of text is highlighted with the mouse, it can be pasted by middle-clicking on the place you want, or by using the always classic Shift+Insert key combo. But, when the area where that ...
1
vote
1answer
46 views

Copy file to clipboard as text/html

I would like to copy the contents of a file to the X11 CLIPBOARD target text/html using the command line. Ideally, this would be as portable as possible across different flavors of Linux and possibly ...
1
vote
0answers
99 views

Copy text in byobu when the mouse is “off”

I recently started using byobu with tmux as a backend. I have learned that AltF12 toggles "mouse mode" off and on. When "mouse mode" is on, I can select text with my mouse and paste it with the middle ...
2
votes
0answers
64 views

Vim losing ability to copy to client clipoard over SSH

I have setup vim to be able to yank text from the server instance of vim to the clipboard on My client's operating system (through the SSH connection). The basic setup is Client side gnome-...
2
votes
1answer
130 views

Clipboard doesn't work between Win7 (local) and Linux (remote)

I'm using Win7 64-bit and connecting remotely to Debian. The thing is copy/paste doesn't work even for plain text. I've tried killing this process rdpclip.exe and create again, but that didn't help. ...
1
vote
1answer
78 views

How to change/remove paste on middle click? [duplicate]

Question: How to remove the "paste" feature of the middle button? I am not asking to remove the middle button from the device (as many pages show as a solution) because I use this middle button for ...
2
votes
4answers
247 views

Interactively add arguments line-by-line in bash

Sometimes it happens that I have a list of files or strings in the clipboard and want to paste it as an argument list in a bash shell: Example file list (only an example): createsnapshot.sh ...
1
vote
0answers
53 views

How to use Ctrl+mouse click in tmux?

Due to the change in Tmux2.1, I need to remap my mouse's middle click to tmux's paste: bind -T root MouseDown2Pane run -b "tmux paste-buffer" However, I also would like to enable using Ctrl (or Alt,...
22
votes
4answers
2k views

What causes a copy/paste in terminal to sometimes execute the command?

When you paste some command in terminal, it will sometimes automatically execute the command (just like if the "Enter" key was pressed), sometimes not. I've been using Linux for ages, pasted ...
2
votes
1answer
192 views

Klipper: how to paste current clipboard contents as plain text with a single shortcut action?

I want to be able to copy rich text with CTRL-C, then paste it as plain text with a short cut key (such as CTRL-SHIFT-V or whatever). I'm running KDE and I use Klipper. It seems like there should be ...
4
votes
0answers
188 views

Disabling PRIMARY or cut buffer “copy on select”

I've been fairly happily using Ctrl-C/Ctrl-V, with the occasional Ctrl-Ins/Shift-Ins here and there on Linux for quite some time, but I've recently switched over to urxvt and am finding the clipboard ...
1
vote
0answers
57 views

paste clipboard text plus string with .inputrc

I've got in my .inputrc something like "\C-v": "script.sh " I use a link from my clipboard as a parameter for the script, so I type ctrl-v and then paste the link, and then hit enter. So I've seen ...
3
votes
2answers
63 views

Making an Extra Copy and Paste Script

How can I make a script which duplicates Ctrl + C and Ctrl + V (aside from the actual keybinding part, which I know already I can use xbindkeys for)? So, for example, how could I make bash functions ...
2
votes
1answer
87 views

xfce4-screenshooter creates something invalid in clipboard when taking screenshot

I installed xfce4-screenshooter-plugin on my xfce VirtualBox Debian 8 and. with use of xfce4-screenshooter --help I bound PrScr and Ctrl + PrScr to capture full screen and active window screenshots ...
2
votes
0answers
79 views

RedHat5 stop copy on select

At work do we use RHEL5, with Gnome 2.28.2, we are also required to do development work in RHEL5. RHEL5 have this strange feature that it will replace the clipboard with anything i highlight. This is ...
3
votes
5answers
570 views

Why is Terminal automatically entering my command after pasting text?

This happens whether I use ctrl+shift+v or paste from the right-click menu. How do I make this behavior stop?
3
votes
1answer
72 views

Copy a large (over 4k) selection of text from the screen scrollback buffer into the system clipboard

I wan't to be able to copy-paste the contents of my screen scrollback buffer into various browser text fields, usually when pasting an excerpt from a log file. One way that works well is the following:...
2
votes
1answer
102 views

tmux/zsh messes up pasted text

When I paste text into a tmux shell running zsh by select it with a mouse and then hitting 3rd mouse button, it prefixes the text with "200~" and adds a "~" at the end. For example, if I have the ...
2
votes
3answers
3k views

How can I copy text from xterm (Awesome, Debian, VirtualBox)?

I ran the minimal Debian installation inside a VirtualBox instance, installed X11 and Awesome window manager manually (without any custom configuration yet) and installed VirtualBox additions as well (...
2
votes
0answers
144 views

Paste clipboard content without X

I'm sshing into ArchLinux machine from Ubuntu. I want to be able to copy some text from Ubuntu and paste it into a file in Archlinux from terminal. xclip doesn't work for me, because I'm unable to set ...
2
votes
0answers
46 views

System clipboard is flushed out, once I exit vim

I use yy to access the system clipboard always. yy is mapped to a function as, function! Copy_ToSystemClip() .w !xsel -ob end function inoremap yy Copy_ToSystemClip()<CR> It copies to the ...
0
votes
1answer
65 views

Ctrl-y, yanking x-clipboard contents to terminal adds shell prompt string

Using this link, i wrote custom function to yank text from x-clipboard to shell terminal on pressing C-y. I see two issues here, copy_line_from_x_clipboard () { xsel -o } bind -x '"\C-y": ...
0
votes
0answers
35 views

Ctrl + y on shell terminal, paste from system clipboard [duplicate]

I use emacs style bindings for my bash terminal. And i use only the system clipboard and never use any of the application specific/primary selection stuff. When i copy text from emacs window and use ...
1
vote
1answer
83 views

Clear X clipboard using cron [duplicate]

Is there any way I can clear the X clipboard from a cron job? The usual commands for xclip don't seem to work. echo -n | xclip -selection clipboard doesn't work from cron.
1
vote
1answer
93 views

Remove formatting from copy/paste buffer

Whenever I copy any text via X11's copy/paste feature, I would like all formatting to be removed. I waste time daily dumping the text into a terminal, then copying again. Is this possible?
2
votes
3answers
634 views

Trailing spaces when copying from console

It's this annoying behavior I've been experiencing here and there occasionally: when you select text with mouse in console (that is, copy it), paste it, and realize you've got extra spaces at the end ...
3
votes
0answers
66 views

Patching X11 to remove SELECTION clipboard

How would I patch the X11 source to disable or remove the SELECTION clipboard?
0
votes
0answers
21 views

Disabling text entry box autoselect?

I've got a bunch of GUI applications which try to be 'helpful' by automatically selecting text in a text box when the text box gets focus. (The main culprit being my web browser.) This is not helpful,...