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 ArticleAnswer 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 ArticleAnswer 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 ArticleAnswer 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 ArticleHow 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