<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: symlinks -r -d / in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201591#M32632</link>
    <description>&lt;!--!*#--&gt;"man symlinks"?&lt;BR /&gt;&lt;BR /&gt;       -d     causes dangling links to be removed.&lt;BR /&gt;&lt;BR /&gt;       -r     recursively operate on subdirectories within the  same  filesys-&lt;BR /&gt;              tem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"on linux" is not a very useful description&lt;BR /&gt;of the system.</description>
    <pubDate>Tue, 20 May 2008 16:49:03 GMT</pubDate>
    <dc:creator>Steven Schweda</dc:creator>
    <dc:date>2008-05-20T16:49:03Z</dc:date>
    <item>
      <title>symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201590#M32631</link>
      <description>hi&lt;BR /&gt;&lt;BR /&gt;what happens after this command:&lt;BR /&gt;&lt;BR /&gt;# symlinks -r -d /&lt;BR /&gt;&lt;BR /&gt;on linux ? &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 20 May 2008 16:30:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201590#M32631</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2008-05-20T16:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201591#M32632</link>
      <description>&lt;!--!*#--&gt;"man symlinks"?&lt;BR /&gt;&lt;BR /&gt;       -d     causes dangling links to be removed.&lt;BR /&gt;&lt;BR /&gt;       -r     recursively operate on subdirectories within the  same  filesys-&lt;BR /&gt;              tem.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;"on linux" is not a very useful description&lt;BR /&gt;of the system.</description>
      <pubDate>Tue, 20 May 2008 16:49:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201591#M32632</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-20T16:49:03Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201592#M32633</link>
      <description>thanks, but what dangling links means ?</description>
      <pubDate>Tue, 20 May 2008 17:00:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201592#M32633</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2008-05-20T17:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201593#M32634</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] but what dangling links means ?&lt;BR /&gt;&lt;BR /&gt;I guess that it means that you didn't take&lt;BR /&gt;the "man symlinks" hint offered earlier.&lt;BR /&gt;&lt;BR /&gt;"man symlinks":&lt;BR /&gt;&lt;BR /&gt;       dangling links are those for which the target of the link does not cur-&lt;BR /&gt;       rently  exist.  This commonly occurs for absolute links when a filesys-&lt;BR /&gt;       tem is mounted at other than its customary mount point  (such  as  when&lt;BR /&gt;       the normal root filesystem is mounted at /mnt after booting from alter-&lt;BR /&gt;       native media).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;For information on most commands, "man&lt;BR /&gt;command" is often helpful.  In this case,&lt;BR /&gt;"man symlinks".&lt;BR /&gt;&lt;BR /&gt;Did you try "man symlinks"?&lt;BR /&gt;&lt;BR /&gt;"man symlinks" might help.</description>
      <pubDate>Tue, 20 May 2008 17:14:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201593#M32634</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-20T17:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201594#M32635</link>
      <description>Hi Chris:&lt;BR /&gt;&lt;BR /&gt;A simple way to find dangling symbolic links is to use this Perl snippet:&lt;BR /&gt;&lt;BR /&gt;# perl -MCwd=realpath -MFile::Find -wle 'find(sub{print $File::Find::name," -&amp;gt; ",realpath($_) if -l &amp;amp;&amp;amp; ! -e},@ARGV)' /path&lt;BR /&gt;&lt;BR /&gt;Pass the /path argument that represents the directory that you want to examine.  If there are dangling links, this reports them.  For example, do:&lt;BR /&gt;&lt;BR /&gt;# touch /tmp/myfile&lt;BR /&gt;# ln -s /tmp/myfile /tmp/mylink&lt;BR /&gt;# rm /tmp/myfile&lt;BR /&gt;# perl ... &lt;BR /&gt;/tmp/mylink -&amp;gt; /tmp/myfile&lt;BR /&gt;&lt;BR /&gt;...which exposes '/tmp/mylink' as a dangling symbolic link.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 20 May 2008 19:16:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201594#M32635</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-20T19:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201595#M32636</link>
      <description>On HP-UX anyway, if you use "ls -lL" on a directory, any dangling link would have bogus permissions, owner, group and time.  Then you could just grep for that pattern.</description>
      <pubDate>Sun, 25 May 2008 04:50:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201595#M32636</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-25T04:50:17Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201596#M32637</link>
      <description>thanks to ALL,&lt;BR /&gt;&lt;BR /&gt;do I understand correct ?&lt;BR /&gt;&lt;BR /&gt;symlinks -r -d /&lt;BR /&gt;&lt;BR /&gt;cannot damage my linux system ? &lt;BR /&gt;</description>
      <pubDate>Sun, 25 May 2008 09:27:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201596#M32637</guid>
      <dc:creator>'chris'</dc:creator>
      <dc:date>2008-05-25T09:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201597#M32638</link>
      <description>&lt;!--!*#--&gt;&amp;gt; [...] cannot damage my linux system ?&lt;BR /&gt;&lt;BR /&gt;It _probably_ won't.  I can _imagine_ someone&lt;BR /&gt;using a dangling link for data storage, like&lt;BR /&gt;a simple text file, so I wouldn't _guarantee_&lt;BR /&gt;that it's safe.&lt;BR /&gt;&lt;BR /&gt;    ln -s 'Any text may be stored here.' fred&lt;BR /&gt;    symlinks .&lt;BR /&gt;    dangling: /house/antinode/fred -&amp;gt; Any text may be stored here.&lt;BR /&gt;&lt;BR /&gt;Have you looked at the output without "-d",&lt;BR /&gt;to see what will happen with "-d"?&lt;BR /&gt;&lt;BR /&gt;If you have any doubts about the safety of&lt;BR /&gt;"symlinks -d", why do you want to do it?</description>
      <pubDate>Sun, 25 May 2008 17:28:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201597#M32638</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2008-05-25T17:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201598#M32639</link>
      <description>&amp;gt;Steven: I can _imagine_ someone using a dangling link for data storage, so I wouldn't _guarantee_ that it's safe.&lt;BR /&gt;&lt;BR /&gt;That's exactly what netscape does to prevent multiple instances.  It has a .lock that is linked to the value of DISPLAY and maybe the PID.</description>
      <pubDate>Tue, 27 May 2008 02:22:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201598#M32639</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-05-27T02:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: symlinks -r -d /</title>
      <link>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201599#M32640</link>
      <description>Hi (again) Chris:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; symlinks -r -d / ...cannot damage my linux system ?&lt;BR /&gt;&lt;BR /&gt;If it is a *personal* system, then it's up to you to choose.  If this is a company/production server, then I'd be a bit more careful.&lt;BR /&gt;&lt;BR /&gt;Instead of capraciously removing all dangling links, I would do:&lt;BR /&gt;&lt;BR /&gt;# symlinks -r / | grep dangling&lt;BR /&gt;&lt;BR /&gt;...and exaxmine the output.  Then, perhaps on a case-by-case basis make a determination to manually remove ('rm') dangling links that you don't want.&lt;BR /&gt;&lt;BR /&gt;A dangling link isn't necessarily a "bad thing".  For instance, you might want to keep symbolic links to an installation CD/DVD/USB.  I might have:&lt;BR /&gt;&lt;BR /&gt;# symlinks -r /home&lt;BR /&gt;dangling: /home/jrf/install -&amp;gt; /media/JRF_DISK/ARCHIVE.tar&lt;BR /&gt;&lt;BR /&gt;...which I might wish to retain for times when I actuall mount a USB device named "JRF_DISK".&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 27 May 2008 12:28:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/symlinks-r-d/m-p/4201599#M32640</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2008-05-27T12:28:06Z</dc:date>
    </item>
  </channel>
</rss>

