Note that there are some explanatory texts on larger screens.

plurals
  1. POHow can I follow and fully report on a chain of symlinks?
    primarykey
    data
    text
    <p>What are the best tools/programming-techniques for following a complicated nesting of symlinks <strong>and completely capturing and reporting on every symlink along the way, including those in the middle of a path (See below for more info)</strong>.</p> <p>Here's a specific example. Consider the following output from a shell command</p> <pre><code> ls -l /Library/Java/Home lrwxr-xr-x 1 root admin 48 Feb 24 12:58 /Library/Java/Home -&gt; /System/Library/Frameworks/JavaVM.framework/Home </code></pre> <p>The ls command lets you know that the file /Library/Java/Home file is a symlink to another location. However, it doesn't let you know that the thing it's pointing to is also a symlink</p> <pre><code>ls -l /System/Library/Frameworks/JavaVM.framework/Home lrwxr-xr-x 1 root wheel 24 Feb 24 12:58 /System/Library/Frameworks/JavaVM.framework/Home -&gt; Versions/CurrentJDK/Home </code></pre> <p>This, in turn, doesn't let you know that <em>part of the path</em> of the pointed to file is a symlink.</p> <pre><code>ls -l /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK lrwxr-xr-x 1 root wheel 3 Feb 24 12:58 /System/Library/Frameworks/JavaVM.framework/Versions/CurrentJDK -&gt; 1.5 </code></pre> <p>Which, just to complete this tale, is another symlink </p> <pre><code>ls -l /System/Library/Frameworks/JavaVM.framework/Versions/1.5 lrwxr-xr-x 1 root wheel 5 Feb 24 12:58 /System/Library/Frameworks/JavaVM.framework/Versions/1.5 -&gt; 1.5.0 </code></pre> <p>Finally pointing at a "real" folder.</p> <p>Are there any tools that can visualize the full chain of links for you in some way (either graphically or plain old text)? I'm sure one could script this themselves (and if you want to, please do it and share!), but it seems like the kind of thing that would be fraught with "oh, crap, edge case. Oh, crap, ANOTHER edge case". I'm hoping someone's already gone to the bother.</p> <p>I do freelance/contract work, and everyone uses symlinks slightly differently to install their PHP applications on a web-server. Half my job is usually un-nesting this (inevitably) undocumented hierarchy so we know where to put our new code/modules.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload