Under Properties
dialog window: Link target:
the path of the original file is always shortened, due to a programed restriction of characters space, even after resizing the window, and therefore of not much use.
When the Link target
path is copied and pasted to a terminal window, it looks like this:
../../lib/firefox/icons/mozicon128.png
which is a small improvement, since now the original file name is fully know and locate mozicon128.png
will provide the correct path, which is:
/usr/lib/firefox/icons/mozicon128.png
Q1: What other options are there to find the path more quickly, without using the suggested two steps (maybe a right-click menu integration that copies the path to clipboard would be great)?!
Q2: ../../
refers to /
(see screenshot below), but why, instead of being more accurate? Is there any build in option, to copy the full path from Properties dialog window (Ubuntu 11.10)?
Path of the symlinked firefox image in this example is:
/usr/share/pixmaps/firefox.png
You can use a nautilus script for this:
More about readlink -> http://manpages.ubuntu.com/manpages/hardy/man1/readlink.1.html
You have to install
xclip
for this if not already done.I think
namei
utility is exactly what you want.From
man namei
: