Answer the question
In order to leave comments, you need to log in
How to copy filename in linux terminal?
Good afternoon.
Sometimes you need to quickly copy the filename.
Suppose, in order to copy the path to the directory where I am, I created such an alias. alias getp='pwd | xclip -sel clip'
I want to create something similar for copying the name of a file or directory.
You also enter the command and file name, and it is automatically copied to the clipboard.
Thanks in advance for your help.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question