Suppose I have a file selected in Files. How can I copy it's full file path to the clipboard? hitting <CTRL>+L
followed by <CTRL>+C
(or <CTRL>+X
) just copies the path of the parent directory to the clipboard. How to get the full path copied to clipboard?
I am not looking for drag-and-drop functionality (e.g., I already know I can drag the file to, say the terminal app, to paste it's path there).
... to be complete:
Drop a file (icon) in Terminal, i.e. at the Bash prompt and you'll see the file+path.
Select any text, a filename and or path in the Terminal, CTRL+SHIFT+C copies it, SHIFT+CTRL+V to paste in the terminal, CTRL+V everywhere else.
Type this in Terminal (Hit Enter after each line) and you will have a new
clipb
command to use there:e.g.
$ echo hello | clipb
will have you pastehello
anywhere with CTRL+V / SHIFT+CTRL+V (in a terminal).If you copy the file with right click and then paste on a text field it will paste the whole path to that file as text.