Questions tagged [clipboard]
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
503 questions
0
votes
1
answer
47
views
How to always paste with Shift Insert the text copied by Ctrl C or browser?
I'm using Linux Mint and I want Shift Insert to paste anything copied by Ctrl C or from a web browser action (notable use case: clicking to copy GitHub repo URL).
I know there's all the PRIMARY/...
0
votes
0
answers
21
views
xterm -- paste selection as lines, not as single buffer [duplicate]
I'm not sure if this is something in my config, or a change in xterm.
In the past, I would select three lines of text, for example,
pwd
cd bin
pwd
and when I paste them, I would get three separate ...
0
votes
0
answers
74
views
Copy/Pasting files via GUI is very slow
Why is my transfer speed slow when backing up my minecraft folders?
I'm just trying to back up my minecraft servers on my home hand built desktop server. However, when I copy paste from my internal ...
3
votes
2
answers
238
views
How to preserve creation time when copying [duplicate]
I want to preserve Access, Modify and Birth timestamps when copying files. I tried the following flags.
rsync --atimes --times --crtimes --archive
However I get an error that crtimes is not supported....
0
votes
1
answer
108
views
Can Xfce's Clipman let you cycle the clipboard?
I use Clipman - xfce4-clipman-plugin. I sometimes copy two items and want to paste them both, one then the other. I would expect to be able to paste one (ctrl + v), press some keyboard combo to tell ...
0
votes
0
answers
74
views
How to copy and paste from macOS host into VMWare virtual machine running ArchLinux and Hyprland?
I'm running ArchLinux in a virtual machine in VMWare. I've open-vm-tools installed but I'm unable to copy from macOS host and paste into Hyprland. How can I achieve this?
1
vote
1
answer
206
views
Recompiling Vim with +clipboard on Arch Linux (DWM/X11)
I use Arch Linux + DWM on the X Window System. I can't copy from Vim to an external application, and the vim --version command returns -xterm_clipboard. As I understand it, I need to recompile my Vim ...
0
votes
0
answers
26
views
JMeter on my Sequoia - Clipboard does not work
I have installed JMeter version 5.6.3 on my Sequoia 15.2 Mac laptop. Everything works fine except the clipboard. I can't copy and paste anything into the JMeter GUI. It's running under JDK 17.
0
votes
1
answer
76
views
Yanking to the global clip board from the command line in Vi editing-mode
I am using Arch, bash and gnome terminal.
All are up to date with the very latest software versions.
I wish to bind ctrl+c to yank the current line on the command line to the global clipboard, which ...
3
votes
0
answers
138
views
Run a script when Clipboard is changed
I know that the clipboard is not a function of the Linux kernel but a feature of the desktop. And there is no "location" where the content in the clipboard is saved. Clipboard is saved in ...
0
votes
0
answers
661
views
QEMU clipboard not working
I have Debian 12 (Gnome on Wayland) as my host OS and the same Debian 12 as guest (via tty, no GUI). Using virt-manager and qemu-kvm for managing VMs. Tried installing spice-vdagent on guest but it is ...
0
votes
2
answers
619
views
Why does the "cp" command not work with pasted directory path from "pwd | pbcopy" command?
I ran pwd | pbcopy command in Terminal on my MacBook Pro to copy the working directory to the clipboard. The working directory looks like this:
/Users/JohnSmith/PycharmProjects/100 Days of Code - The ...
1
vote
2
answers
245
views
Copy to clipboard some previous lines of bash terminal with keyboard only
Let's say you do ls -al in a Bash shell in Debian or Ubuntu and get:
drwxrwxrwt 95 root root 12288 Sep 28 2024 tmp
drwxr-xr-x 14 root root 4096 Sep 28 2024 usr <-- how to copy this to ...
-2
votes
2
answers
387
views
'pbcopy' or something similar to copy the command to the clipboard literally
echo $(( 1 + 2 )) | pbcopy
This will copy 3 to the clipboard. But how is it possible, the same way, to copy the literal echo $(( 1 + 2 )) string to the clipboard?
1
vote
1
answer
428
views
How to open a directory from current location using lf and other terminal hygene
I like using the command line but I find myself falling back on the GUI and mouse.
Is there a way to open a bash terminal in the current location you're navigated to in lf? Navigating to a directory ...
2
votes
2
answers
587
views
Assign variable a value and copy this value to the clipboard
I believe this is very simple, but I haven't figured it out myself. How is it possible to assign variable a value and copy this value to the clipboard in a really concise way?
That is, something like ...
0
votes
2
answers
134
views
Paste the value of a shell expression into Vim
I need to make the text returned by echo $(which bash) available for pasting in a text file opened in Vim.
The cause of my confusion is that it seems there are at least three clipboards:
system ...
2
votes
0
answers
107
views
Why does pasting something with angle brackets into GNU Screen not work in Alacritty?
pasting this into screen
wg pubkey < ~/.ssh/wireguard.t520.private.key > ~/.ssh/wireguard.t520.public.key
.. results in this:
~/.ssh/wireguard.t520.private.key > ~/.ssh/wireguard.t520.public....
2
votes
0
answers
290
views
How to debug unreliable middle-button copy/paste (selection does not always update)
I used to love the select text -> paste immediately with middle button. But recently it has become very buggy for me:
pasting seems to work a bit, then holds onto an old selection, and continues ...
0
votes
3
answers
222
views
xsel like a clipboard manager: keep clipboard content for future use
I'd like to run xsel as background process to keep clipboard content for future use. I run it in openbox startup script like that:
xsel -b -k
But when I select something with Ctrl-C and close ...
0
votes
0
answers
45
views
tool or shortcut for copying part of the terminal [duplicate]
I apologize for the vagueness of this question but I saw this tool over 4 years ago at this point.
I remember working with a colleague at one point who knew a bash tool or shortcut that allowed him to ...
0
votes
0
answers
630
views
Unable to copy using wl-copy (wl-clipboard) - issue with `xdg-mime`
OS: Arch linux (linux-6.8.1.arch1-1)
WM: Hyprland
When I run echo 'hello' | wl-copy, I get the following output:
echo "hello" | wl-copy
Usage: file [-bcCdEhikLlNnprsSvzZ0] [--apple] [--...
2
votes
1
answer
222
views
Ranger: yank name does not copy anything to clipboard
I am using:
ranger version: ranger-master
Python version: 3.11.8 (main, Feb 12 2024, 14:50:05) [GCC 13.2.1 20230801]
Locale: en_US.UTF-8
When I invoke yank name using yn, nothing happens. I use Arch ...
0
votes
0
answers
633
views
How can I save the output of tail to my clipboard or somewhere on a SSH session where there is only a unidirectional connection and server is limited?
I have to report some logs from some of the servers in our infrastructure which I have limited permissions on. Every time I copy 1000 lines of logs and paste it into Slack, I can't do scp from the ...
3
votes
1
answer
276
views
KDE Plasma picture keeping clipboard manager
As I know, Windows and Gnome clipboard manager can 'saves' pictures in clipboard manager. Is there a way to do something like that in Plasma?
1
vote
1
answer
285
views
How can I mouse scroll in Xterm when I am selecting the text to copy to clipboard?
I press the left button of my mouse and drag. This way I can select up to one display-size piece of text in Xterm and then copy it (I set up to be able doing it with Ctrl+Shift+C).
However, when I ...
0
votes
0
answers
181
views
Can't use ctrl+shift+c to copy to secondary clipboard
Running I3 without a desktop environment on Debian 12.
My terminal is Alacritty and my shell is bash.
I am unable to copy into what I assume is the secondary selection clipboard using the default ...
1
vote
0
answers
800
views
Copy all text in a tmux pane?
How can I copy all the text in a tmux pane?
Pressing Ctrl + b and ] I can select a portion of text, but it is cumbersome to scroll all the way to the top in a long pane.
Is there an easier way to ...
2
votes
1
answer
1k
views
How to use two clipboards?
I use Ubuntu 20.04. I have read that Linux uses two clipboards:
copy/paste using a mouse context menu
copy/paste using keys: ctrl + c/ctrl + v
Here is my example usage (actions are performed in the ...
0
votes
0
answers
55
views
Are there two different clipboards? Why does copy/paste work differently depending upon keys used (shift-insert & ctrl-v)? [duplicate]
It's as if there are two different system clipboards (stash places for copied text), with two different ways of accessing them.
I've noticed this for quite some time but never been able to narrow it ...
0
votes
0
answers
1k
views
How to find out which clipboard manager my system uses?
I am not sure if the clipboard manager works as that shell interpreter in the sense we select one and only one to use in an interactive login shell (i.e., the terminal). If so, I wonder how to find ...
0
votes
0
answers
48
views
Very new to linux (fedora). Trying to streamline my login process for work
I'm extremely new to both Linux and writing any sort of code.
I've been setting up my workstation on a Fedora OS. I'm trying to streamline my process as much as possible, but I've run into a couple ...
3
votes
0
answers
180
views
Why is the X Clipboard Storing JPG Images as Large files?
I've been delving into a bizarre behavior of the X clipboard on my Linux setup.
I initially copied an image from a web browser, which I later identified to be in JPG format when I saved the file. But ...
0
votes
1
answer
763
views
Line length limit for cat reading from keyboard [duplicate]
I have a single line of about 30000 characters (and no newline) in my clipboard. I want to put that into a file. I tried the following command in a GNOME terminal (Ubuntu 20.04):
cat > file.ext
...
0
votes
1
answer
416
views
Configure Cygwin so that Windows's Shift+Insert pastes into xterm
I had Cygwin and its X-Windows installed on my Windows 10 laptop. On
all of my Windows computers (Acer, EliteBook, some Dell brand, and
others), the Windows 10 and X-Windows clipboard buffers were ...
0
votes
1
answer
67
views
How to yank text from the kill-ing and instert it at the cursor location in another terminal window? [closed]
Is it possible to copy a text from one terminal and input it into another without selecting it?
More precisely, within the same terminal window, I can kill the text line by CTRL-U and then yank the ...
2
votes
0
answers
572
views
Terminal with advanced copy paste capabilites
Kitty terminal has a feature where one can run a python script that captures text via regex and allows copying directly to clipboard (see https://sw.kovidgoyal.net/kitty/kittens/hints/)
The matches ...
3
votes
2
answers
1k
views
disable formatting when using cut and paste
I am using openbox as my window manager. When I copy and paste using Ctrl+c and Ctrl+v from one application into another, it transfers the text formatting together with the text.
I have to use ...
3
votes
1
answer
2k
views
KVM VM - copy and paste without host clipboard access
I've been trying to look for an option to copy and paste into/from my Debian KVM/QEMU virtual machine without giving the VM access to the host clipboard, and without the host having access to the VMs ...
2
votes
1
answer
4k
views
How to copy and paste in alpine linux VM?
I recently installed an alpine-3.17 VM using virtualbox 7. I also installed the guest additions and are able to map shared folders. But it seems that I cannot copy-and-paste from the host OS.
I copied ...
1
vote
2
answers
161
views
linux clipboard update appears to persist reboot
I was horrified to reboot Debian Buster after a recent update to find that there is a log of previous copy-and-pastes, including passwords. Isn't that kind of thing supposed to live only in the RAM?
A ...
0
votes
2
answers
54
views
Simple filter to unhardwrap multiple paragraphs
I have many markdown files which are hardwrapped to 80 characters. I would like to copy these to paste into textareas (xclip -sel clipboard < file), but want them to wordwrap normally. This is ...
0
votes
1
answer
62
views
geeqie: copy path to clipboard does nothing
geeqie 2.0.1-4
mate-desktop 1.26.0-1
Linux 6.1.5-arch2-1
The geeqie image viewer has a menu item 'copy path to clipboard'.
Is this 'clipboard' the global clipboard, so that I can, say, paste the path ...
2
votes
1
answer
388
views
Ctrl-y not restoring line in zsh
I've got zsh 5.8.1 running on Ubuntu 22.04. When I've got some text on the prompt and I type Ctrl+u, it clears the line as expected. However, when I then type Ctrl+y, it only displays
$ ^Y
What ...
1
vote
1
answer
359
views
Disable automatically copying selection to clipboard in urxvt
There are 2 kind of clipboards on my os (manjaro i3). Xclip, which keeps the last selected text, and the regular clipboard which must be explicitly copied.
I have noticed urxvt copies selected text in ...
3
votes
1
answer
568
views
How do I configure the copy/paste buffer so that only plain text is stored?
Unfortunately I need to revisit my question from five years ago:
How do I sanitize the copy/paste buffer?
There is still no answer to this.
I'm using CopyQ as a clipboard manager now, and it works ...
0
votes
2
answers
573
views
Linux pastes clipboard at "random" times
I'll be editing files, actively using a keyboard and sometimes a mouse, especially to switch windows and such. My programs open under edit suddenly have syntax errors which, ultimately come from ...
1
vote
1
answer
2k
views
how to copy text of file to ram (to do paste later)
I would like to copy the content of a file (string) to my ram memory. As in copy of a text so I can do paste later.
Example:
I have a file name: my_pub_key.pub and inside there's big amount of chars. ...
1
vote
0
answers
557
views
How to make Windows right-click - Paste work in Linux vim?
When using MobaXTerm on Windows, I ssh into a Linux server, start vim and I can right-click into the terminal window and can choose Paste and it pastes text from the Windows clipboard.
When I use git ...
1
vote
1
answer
704
views
Does ssh give access to the virtual console, to a terminal emulator, or what? [duplicate]
As far as I've understood, a terminal emulator is a GUI-based program which gives me a terminal-like viewport and allows me to interact with it just like I'd do with a terminal, except that it has all ...