Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I copy the file and folders full path in Nautilus? In the right-click context menu there is no such option provided. In file/folder property window I can only copy the folder path.

share|improve this question
up vote 39 down vote accepted

To quickly get a file path in Nautilus we can use the right click context entry "Copy" to copy the file path to the clipboard.

Then just "Paste" (resp. "Paste Filenames") this path from the clipboard to the other application, e.g. a text editor.

share|improve this answer
Wow, this actually works, thanks for the great tip! – Gerhard Burger Dec 5 '12 at 8:58
Context-aware pasting, so awesome! – Alix Axel Aug 1 '13 at 17:07
Unfortunately in Ubuntu 12.04 this does not work flawlessly. When I paste to GNOME Terminal I get URL i.e. file:\\... (with URL encoded characters like %20 for space) instead of the ordinary path. – pabouk Aug 3 '13 at 20:03
@pabouk as a workaround you can drag and drop files onto the GNOME terminal. This will paste the file path instead of its URI. – Glutanimate Aug 4 '13 at 0:25

Unfortunately pasting file path from Nautilus to GNOME Terminal does not work as expected. It pastes the path as an URL with URL encoded characters. For example it pastes:


instead of


Solution with clipboard

Use the Edit > Paste Filenames function from the terminal menu which also takes care of escaping for a shell. Unfortunately this function does not have a keyboard shortcut (besides Alt+E+F) and it seems that it is not possible to set one using gconf-editor.

See also Nautilus copy file/directory path should not put "file://" prefix.

Solution with drag & drop

Dragging a file or directory from Nautilus to GNOME Terminal transfers the correctly formatted path like Edit > Paste Filenames mentioned above.

share|improve this answer

Nautilus does not provide this possibility.
But it should be possible to achieve this if you write a plugin for Nautilus.

share|improve this answer

I really missed this feature from LXDE too as my new laptop is powerful enough for Unity again.


...simply sudo apt-get install pcmanfm, open it, choose 'keep in Unity starts" and finally remove Nautilus.

The logo is the same, you won't notice the difference - except that you can now copy the path..

share|improve this answer
-1 The question is, how to achieve this with Nautilus, not with a different file manager. – David Foerster Oct 20 '15 at 18:48

I found a solution to this. You can use Nautilus actions utility to add "Copy path" and "Copy directory path" the the context menu.

This seems to work well.


share|improve this answer
The other answers already said it copies as a path by default, this method is unnecessary – minerz029 Sep 7 '13 at 0:18
+1 This works perfectly in Ubuntu 14.04! – ValarDohaeris Jul 14 '14 at 8:05

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.