Skip to main content

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

0 votes
1 answer
37 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 ...
Kes's user avatar
  • 889
3 votes
0 answers
82 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 ...
fmeier's user avatar
  • 361
0 votes
0 answers
312 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 ...
lacinquette's user avatar
0 votes
2 answers
480 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 ...
sjl26916091's user avatar
0 votes
0 answers
79 views

Ubuntu 22 host, Mac OS guest running in qemu: copy/paste from ubuntu <--> Mac os not working

I am running mac os sequioa guest VM on Ubuntu 22 host using this command: /usr/bin/qemu-system-x86_64 \ -name macos-big-sur,process=macos-big-sur \ -machine q35,hpet=off,smm=off,vmport=off,accel=kvm \...
user674669's user avatar
1 vote
2 answers
161 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 ...
Basj's user avatar
  • 2,651
-2 votes
2 answers
193 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?
jsx97's user avatar
  • 1,347
1 vote
1 answer
189 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 ...
1toneboy's user avatar
  • 465
2 votes
2 answers
436 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 ...
jsx97's user avatar
  • 1,347
0 votes
2 answers
80 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 ...
jsx97's user avatar
  • 1,347
2 votes
0 answers
88 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....
Jason Hunter's user avatar
0 votes
0 answers
460 views

Copy/paste via virt-manager to a kvm text mode guest

I have done what's mentioned in virt-manager copy paste functionality to the vm Environment: Ubuntu 22.04 server (VM) and Kubuntu 22.04 (virt-manager) Installed spice-vdagent on the VM and spice-...
Senior Geek's user avatar
2 votes
0 answers
190 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 ...
Bonlenfum's user avatar
  • 203
0 votes
3 answers
141 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 ...
Anton Vakulenko's user avatar
0 votes
0 answers
44 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 ...
modernNeo's user avatar
  • 185

15 30 50 per page
1
2 3 4 5
30