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 paste the file name again.
Is there a way to copy a certain string that was previously displayed in the terminal without using my mouse?
Thanks!
Best Answer
Create an alias:
Use this command to copy
(You can also use
to copy a specific filename. If you don't know what an alias is: http://www.hostingadvice.com/how-to/set-command-aliases-linuxubuntudebian/ )