I just moved from Ubuntu 18.04 to 20.04. A strange behaviour in Files (Nautilus) is that you cannot copy a file path. Instead, it copies
x-special/nautilus-clipboard
copy
file:///home/mywork/test.txt
instead of
/home/mywork/test.txt
As I researched, this change has come into effect in 19.04. Several bugs have been filed for this behaviour. Therefore, I assume it is the intended behaviour.
Since I frequently copy files and run them in the terminal, I have to shift to another file manager.
I wanted to use Nemo, but I read the latest version has the same behaviour (apparently they use the same core system).
Can you recommend a file browser with the standard path copying behaviour?
Copy from nautilus and then paste into a terminal by right-mouse "Paste as Filenames". This will preserve the path. This menu option appears only after copy. I have tested this on fresh installs of 19.10 and 20.04.
Other answers introduced various file managers, but I went for Nemo because it is pretty much similar to Nautilus. Contrary to what I had read, Nemo 4.4.2 pastes the file location with no superfluous text.
Nautilus is indeed the worst thing I encountered in Ubuntu. And I faced a series of problems with it.
In a fresh installation of 20.04, I constantly get the error of
apparently, because I do not have
net
command installed, and Nautilus does not understand it.tracker-miner-fs
constantly works because I have over 10 HDD archives connected to my computer, and it indexes the files I do not want to be indexed.I went through a complicated process to effectively disable it.
The worse thing is that you cannot
uninstall
it without breaking the system.For files paths copying/pasting you could use Caja or Thunar:
Install nautilus-open-terminal by typing in the terminal
$ sudo apt install nautilus-open-terminal
Log out and in again. You can follow exact instructions in the following linkThen In nautilus right click and select "open in terminal" then copy the directory from the terminal with "ctr + shft + c"
Terminal file manager nnn can copy file paths to clipboard on selection. See the program option
-x
.The last version of
nautilus
copies only path, without unnecessary text. Updatenautilus
with commands:You need version
from
focal-updates
repository.