Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 525  / 3 Years ago, tue, september 28, 2021, 8:57:19

enter image description here



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)?



enter image description here






Path of the symlinked firefox image in this example is:



/usr/share/pixmaps/firefox.png

More From » directory

 Answers
1

I think namei utility is exactly what you want.



From man namei:



   namei  uses  its arguments as pathnames to any type of Unix file (symlinks, files,
directories, and so forth). namei then follows each pathname until an endpoint is
found (a file, a directory, a device node, etc). If it finds a symbolic link, it
shows the link, and starts following it, indenting the output to show the context.

This program is useful for finding "too many levels of symbolic links" problems.

[#24011] Tuesday, September 28, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
clegian

Total Points: 283
Total Questions: 115
Total Answers: 115

Location: Morocco
Member since Tue, Feb 2, 2021
3 Years ago
;