Basic clipboard functionality is storing data and allowing to access it, just like memory functions in calculators. For advanced functionalities use "clipboard-manager" tag.

learn more… | top users | synonyms

74
votes
11answers
84k views

A command-line clipboard copy and paste utility?

In Windows I used command-line clipboard copy-and-paste utilities... pclip.exe and gclip.exe These were UnixUtils ports for Windows (but they only handled plain text). There were a couple of ...
70
votes
19answers
46k views

How do I disable middle mouse button click paste?

Is there a way to disable the middle mouse button paste behavior that is here by default on gnome? I have a sensitive mouse wheel and whenever I scroll texts, sometimes it pastes stuff randomly into ...
60
votes
9answers
147k views

How to copy & paste from Ubuntu VirtualBox guest to Windows host?

I am running VirtualBox 4.1.4 on my Windows 7 laptop, running an Ubuntu 11.10 guest. I would like to copy text from Ubuntu's terminal and paste it into a file on the Windows host. This doesn't work ...
54
votes
2answers
36k views

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

What is the command line equivalent to pressing CTRL+C over a file in the file manager so that the file (not the filename) is copied to the clipboard? A situation where this can be useful and fast, ...
44
votes
11answers
33k views

Making Ctrl+C copy text in gnome-terminal?

Is it possible for me to make Ctrl+C perform a copy command if there is highlighted text in the terminal? Otherwise, it should retain its normal behavior. (If there is a terminal that can do this ...
36
votes
2answers
43k views

Progress bar in scp command

Is there any way to display a progress bar while copying from server to local using scp(or vice versa)
34
votes
12answers
99k views

How to fix virtualbox's copy and paste to host-machine?

Sometimes while using VirtualBox, I have tried copying text from the virtual machine to the host machine but failed. Whenever that happens, I fix it by rebooting the virtual machine. Is there a ...
32
votes
1answer
13k views

How do I pipe terminal standard output (stdout) to the clipboard?

For example, Say I want to list the contents of a folder and directly paste them into a chat window for a friend to see. I realize I could do ls > filename.txt to create a file (filename.txt) ...
28
votes
4answers
6k views

Keyboard shortcut for pasting the primary selection

Is there a standard or conventional keyboard shortcut for pasting the primary selection? I'd like to select some text and go to another app to paste without trashing my clipboard contents. I'd ...
19
votes
3answers
1k views

How can I initiate Nautilus file operations from the command line?

How can I start Nautilus's "File Operations" GUI from the command line? My goal is to include this in a Nautilus script.
18
votes
2answers
14k views

Unable to copy from vim to system clipboard

As said in the title I am unable to copy from vim to system clipboard. Viceversa works, copying from outside vim and pasting with p is ok. I have installed clipboard support, vim version is 7.3.429: ...
18
votes
7answers
43k views

Putty-like copy/paste

For ages I've been using Putty when working with *nix servers, and I really got used to it's copy&paste method: select, left-click - for copy, just right-click - for paste. How can I set Ubuntu ...
18
votes
9answers
2k views

Why might I want to use a clipboard manager?

I recently saw this poll asking for the "Best Linux Clipboard Manager". What actually is a clipboard manager and in what situations would a clipboard manager be useful? Are there some differences in ...
17
votes
2answers
856 views

How to copy an entire command line to my clipboard, without the mouse?

Imagine that I have this line in my terminal: youtube-dl --get-thumbnail --extract-audio --audio-format mp3 https://www.youtube.com/watch?v= After testing it, I would like to copy this line above ...
16
votes
3answers
1k views

How to paste commands into a TTY?

I have some rather long commands and file paths which I have copied to clipboard and need to execute in a TTY, however the file paths are too long to retype and I would like to just paste them in ...
15
votes
6answers
29k views

How to copy data between different instances of vim?

If I use the first vim to copy a line (with yy), how do I paste to another terminal's vim (with p)? Is there any command or settings can do it? Can I copy and paste into the global system clipboard? ...
15
votes
5answers
12k views

Ubuntu 14.04 Clipboard Manager?

I'm looking for a program that saves the recent clipboard items (plain text would be enough) like Ditto for Windows. And I don't understand why the reliability of the clipboard managers are so ...
15
votes
3answers
104k views

How to copy files into /usr/local/? (permission denied)

I'm still a little new to Ubuntu and was wondering how I can copy files, in this case Aptana Studio, to /usr/local/ without being denied. Is there a way to do it in terminal? Or a way to allow ...
14
votes
7answers
41k views

How can I copy/paste files via RDP in Kubuntu?

I recently installed the latest Kubuntu (x64) on my work machine as I am trying to migrate away from Windows. Unfortunately I use RDP very frequently to connect to customer's servers and need to be ...
14
votes
3answers
8k views

How to pause/resume transfer of large files?

I recently had to copy about 20 GB of data split between about 20 files from my laptop to an external hard drive. Since this operation takes quite a while (at ~560kb/s), I was wondering if there was ...
14
votes
3answers
2k views

How to efficiently send text entered on the command line to the system clipboard without using the mouse?

Say I've typed the following long command into the command line $ some very long command that I want to copy to the clipboard How can I get this onto the system clipboard efficiently? I'm using ...
13
votes
1answer
3k views

Why is Ubuntu's clipboard so hit and miss?

I find that a lot of the time if I copy some text for example and then close the window being copied from, the paste function does not paste anything. I've noticed this in Ubuntu 9.04 right up until ...
12
votes
5answers
7k views

How to copy only file attributes (metadata) without actual content of the file?

I've already copied terabytes of files with rsync but I forgot to use --archive to preserve files' special attributes. I tried executing rsync again this time with --archive but it was way slower ...
11
votes
9answers
89k views

How to copy/paste text from remote system?

I used to access a remote system via VNC viewer, but when I copy some text from the remote system and paste it in my text editor(local system), nothing happens. Do I need to install any additional ...
11
votes
3answers
43k views

Backup files with rsync: error 23

I'm trying to make a backup of my /home to transfer all data from one computer to another. I wanted to save the backup on the same computer and than transfere it to another one. For safety reasons, I'...
11
votes
2answers
1k views

Getting a graphic on the clipboard to the disk?

I have a graphic on the clipboard on ubuntu. What's the quickest way to get it onto disk as a png or jpg?
10
votes
4answers
28k views

How do you know when to use SHIFT+INSERT vs CTRL-V vs right-click-paste to paste?

Some times I copy something to the clipboard, and it doesn't paste with Shift+Insert, but with Ctrl+V or right-click paste. The behavior seems confusing and a bit unpredictable. Is there some logic ...
10
votes
3answers
3k views

How to copy/paste text without formatting by default?

I'm running Ubuntu 10.04 and I find it annoying that by default the copy/paste functionality also pastes the text format. Most of the time when I copy/paste text I only want to paste the ascii text ...
9
votes
4answers
18k views

How to migrate the whole system to a new machine?

I use ubuntu to deal with daily job. Now I buy a new laptop, and I want to migrate my whole system(programs, packages, data, settings, etc) to the new machine. I know I can copy my home folder to new ...
8
votes
2answers
38k views

Why can't i paste anything under the /usr/ folder?

I just wanted to install a theme for the start up screen and I have to copy some files over here to /usr/share/kde4/apps/ksplash/Themes/. But the answer i get is: Access denied. Could not write to /...
8
votes
5answers
2k views

How do I copy the whole history of the clipboard to a text file?

I would like to paste my whole clipboard history consisting of words copied (Ctrl+C/by selection) during my reading sessions. I installed programs like Glippy and ClipIt but I couldn't figure out how ...
7
votes
2answers
5k views

Command Line Clipboard Access

I'm building a command line tool in order to make some of my tasks more efficient. I need to be able to write content to the clipboard, but for some reason it's not working for me. I've tried ...
7
votes
4answers
834 views

Can two PCs with Ubuntu share the clipboard buffer?

I need to copy text on the first PC and paste on the second. Is this possible?
7
votes
1answer
322 views

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

I'd like to write a script to take an image file, scale it 50% and put it on the clipboard so it can be pasted easily. The bit I'm stuck on is how to place an image on the clipboard. I know of xclip, ...
7
votes
2answers
6k views

How can I copy a file to a new location, creating the directory as well

I want to cp a file to another directory but that directory doesn't exist yet. So I would do: mkdir /new_place cp the_file /new_place Can I do this in one? I imagine something like cp the_file -m /...
7
votes
1answer
932 views

Copy-and-paste is often corrupted

I have ubuntu 10.10 with the 64-bit desktop version. When I copy-and-paste into any window, including firefox, terminal, java swing app, remote desktop, often I get 4 random letters (a 32-bit value?) ...
6
votes
6answers
11k views

How to copy command console text?

I have used the wpa_passphrase command and I get something like this: network={ ssid="blahblah" #psk="moreblahblah" psk=d5e532ecca53ea963e5b3b5521bb3682c53fcf5b6d55f15622027145c795b661 }...
6
votes
5answers
2k views

Copy terminal result from one window to another

I often have many terminals open when working (GNOME Terminal 3.4.1.1, Bash). Quite often I need to copy the results of one terminal into another. An common scenario: terminalA> pwd /home/hooked/...
6
votes
1answer
1k views

Diodon does not save anything copied to the clipboard

I am on 14.04 and just installed Diodon via sudo add-apt-repository ppa:diodon-team/stable sudo apt-get update sudo apt-get install diodon unity-scope-diodon and restarted but when I CTRL+C copy ...
6
votes
2answers
4k views

Replacement for DOS xcopy command

In DOS there's the command xcopy /s *.mp3 ..\TEMP2 How can I do this in Ubuntu? cp -r *.mp3 ../TEMP2 will copy recursively all mp3 files, unfortunately without the path because of the *.mp3 filter....
6
votes
3answers
1k views

Copy paste buffer configuration best practices

There are two copy/paste buffers in Ubuntu: ctrl+c, ctrl+v and alt+ins, shift+ins mouse select and click on selected text. That buffers often appears to mix up, and second buffer doesn't work in ...
6
votes
2answers
5k views

Clipboard history: Need to get something far back

I really need to get some text I copied earlier on today (I have probably copied stuff hundreds of times after that). My computer has been running from the time the text was copied. I do not have any ...
6
votes
4answers
450 views

Reliable clipboard manager

There are many clipboard managers available. The first one I used, I found out if messes clipboard history if clipboard contents was multiline - which I found to be very lame and naive Second one ...
6
votes
2answers
579 views

How can I share my clipboard between two X servers?

I've recently set up my Ubuntu machine so that I run another X session in pty8. I mostly run virtual machines or remote desktop sessions on this other X server, which helps mediate some of the ...
6
votes
1answer
1k views

How to use a common clipboard for vim and Unity?

On my mac I solved the problem this way: :set clipboard=unnamed On my debian I use the + clipboard: :set clipboard=unnamedplus However the methods above don't work on my Ubuntu 12.04 with Unity ...
6
votes
3answers
2k views

Resume interrupted copy

I'm backing up an old hard drive and copying about 300GB of files. It had about 50GB left when I got a kernel panic and now I want to resume the copying. Is there a way to do this in Ubuntu? (A don't ...
6
votes
1answer
20k views

copy from main system and paste in vbox [duplicate]

Possible Duplicate: How to copy & paste from Ubuntu to Windows? How can i copy the information from my main Ubuntu system and paste that information in the VirtualBox System ? I have tried ...
6
votes
2answers
4k views

Can't get the shared clipboard to work on Ubuntu 14.04

I'm working on a VM that I've recently updated to the 14.04LTS. Although the Guest additions are installed, the support for both clipboard and drag and drop is set to bidirectional, when my mouse ...
6
votes
1answer
3k views

Why does Samba always time-out whilst copying a large file off a network share?

I'm running Ubuntu 11.04 (natty), kernel 2.6.38-8-generic, GNOME 2.32.1. EDIT: As of 3 April 2012 I'm now on kernel 2.6.38-13-generic (still same Ubuntu and GNOME). The problem still persists. I ...
5
votes
2answers
3k views

copy to clipboard current path from console with no mouse [duplicate]

I'm wondering if it possible to copy to clipboard output of pwd command. I often need to copy some path and I have to select it with mouse, do several clicks and that is annoying for me. What I want ...