Quantcast
Channel: How can I select and copy file names in the command line without using the mouse? - Unix & Linux Stack Exchange
Browsing all 5 articles
Browse latest View live

Answer by Rounak for How can I select and copy file names in the command line...

sudo apt-get install xclip Create an alias: alias pbcopy='xclip -selection clipboard' Use this command to copy ls | pbcopy (You can also use ls <filename> | pbcopy to copy a specific filename. If...

View Article



Answer by user121382 for How can I select and copy file names in the command...

it is as simple as typing "ls | pbcopy" (without quotes). The downside is you can not paste it into a terminal window, it thinks you want to press enter after each filename pasted. But you can paste...

View Article

Answer by jasonwryan for How can I select and copy file names in the command...

Urxvt has the excellent urxvt-perls collection of scripts that allow you to operate on text in the terminal without resorting to the rodent. In addition to copy and paste, you can select URLs and open...

View Article

Answer by rperce for How can I select and copy file names in the command line...

If you're dealing with files discovered via ls, I usually find it easiest to tab-complete or glob them: if I want to act on report.tex, for example, it's faster to do vim re<TAB> than to...

View Article

How can I select and copy file names in the command line without using the...

Typically, when I want to perform an action on a file I discovered in the terminal after calling [ls], I would have to - with my mouse - highlight, left click, copy file name, type the command in then...

View Article

Browsing all 5 articles
Browse latest View live




Latest Images