Questions tagged [xsel]

xsel is a command line tool for manipulating the 'clipboard' in an X Window System environment.

Filter by
Sorted by
Tagged with
16
votes
2answers
5k views

`tee` for commands

tee can redirect the piped standard input into the standard output and file. echo Hello, World! | tee greeting.txt The command above would display the greeting on the terminal screen and save it in ...
1
vote
1answer
123 views

How to get clipboard as input file name to Vim on bash?

I install xclip to access system clipboard, my setting and some operations as below: ➜ ~ cat .zshrc | grep xclip alias c="xclip -selection c" alias v="xclip -selection c -o" ➜ ~ which dict | c ➜ ~ ...
0
votes
1answer
43 views

How to avoid xsel sending text to clipboard with space/Enter at the end

I am trying to answer this other question: Command/script to start a terminal, enter text but don't execute.... I want to start the terminal and add specific text to it without executing, thus ...
4
votes
1answer
7k views

xsel: Can't open display: (null)

I want to copy a long file into clipboard with xsel,in my local pc ,just input: cat /usr/bin/mysql_secure_installation|xsel -b The file mysql_secure_installation located in my local os was copied ...