there are plenty of examples how to copy "contents" of a file from command line with the help of xclip or xsel. What i am looking for is to copy file from command line and paste into file explorer. So I will use a command to copy file ,not only the contents, and use CTRL+V to paste it in UI.
In order to copy text to X clipboard in tmux, what I currently do is:
go selection mode with prefix[
start selection with space (using mode-keys vi btw)
select the text and press enter
copy tmux buffer to X clipboard using prefixctrl+c
(I have a mapping as bind C-c run "tmux show-buffer | xclip -selection clipboard -i"
I'm trying to eliminate some of these steps by making a mapping for select
I'm in a software security class and we are currently learning about buffer overflows and how they are exploited.
When copying text to the clipboard, xclip provides several selection targets:
-selection
specify which X selection to use, options are:
"primary" to use XA_PRIMARY (default),
"secondary" for XA_SECONDARY
"clipboard" for XA_CLIPBOARD
Is there a way to target multiple selections?
I have tried the following options
echo "Hello world" | xclip -i -selection primary -selection c
Adding URxvt.keysym.M-c: perl:clipboard:copy
URxvt.keysym.M-v: perl:clipboard:paste
URxvt.keysym.M-C-v: perl:clipboard:paste_escaped allows me to successfully copy text from urxvt to the X-Clipboard (and then paste into Chromium using ctrl-v or shift-insert). However, I'm looking for a way that doesn't require the extra step of issuing the M-v command.
Hi,
I've just frustratingly spend a couple of hours looking for some way to paste multiple items recently copied in one go. I.e copy a line copy another line copy a link then 'PASTE ALL' I've tries pastie glipper clipit diodon xlip xsel and nothing will do it. This seems like a really simple thing does anyone know of either an application that will do it or a python script or something?
Linux never stops surprising me, I discover a new application, or a new tip every day, I have been with no time this last months so I could not write here as much as I would like.
Anyway, let me share this tip with you.
Today tool is xclips first of all install it
<!--break-->
Debian/Ubuntu
Linux never stops surprising me, I discover a new application, or a new tip every day, I have been with no time this last months so I could not write here as much as I would like.
Anyway, let me share this tip with you.
Today tool is xclips first of all install it
<!--break-->
Debian/Ubuntu
hi all.
i wondering if there any way to copy paste multiple command into single line.
for eg:
command 1: go to dir.. cd /usr/lib...
command 2:make a new folder in the dir.. mkdir 20121016
command 3:copy into new folder.. cp * 20121016
im using putty to remote my machine, so everytime to backup my folder, i doing this. copy paste one by one command.