<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
> <channel><title>Comments on: Understanding UNIX / Linux symbolic (soft) and hard links</title> <atom:link href="http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html/feed" rel="self" type="application/rss+xml" /><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html</link> <description>This is a Linux sys admin journal by Vivek about sys admin work, Linux tips &#38; tricks, hacks, news and more.</description> <lastBuildDate>Fri, 10 Feb 2012 20:37:43 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: mahesh</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-178991</link> <dc:creator>mahesh</dc:creator> <pubDate>Fri, 03 Feb 2012 05:10:50 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-178991</guid> <description>how the soft links and hard links  will be helpful?</description> <content:encoded><![CDATA[<p>how the soft links and hard links  will be helpful?</p> ]]></content:encoded> </item> <item><title>By: tordeu</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-178442</link> <dc:creator>tordeu</dc:creator> <pubDate>Thu, 12 Jan 2012 15:27:13 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-178442</guid> <description>@Srinivas Kotaru:
Hard links to directories and not supported, because you would be able to create &quot;loops&quot;.
Imagine you would go into a folder &quot;a&quot; and create a hard link &quot;b&quot; that would link to the folder &quot;a&quot;. This would create and endless loop. Imagine you would tar the directory a now.
Tar would go into directory a and find a directory b in it. Then it will try to go into b, but because it is a hard link to a, it will be in folder a again. There, it would again see the folder &quot;b&quot; and when it does into this folder, because of the hard link, end up in a again. And this would never stop, because you created a circle.
In this example it&#039;s easy to figure out. But the situation might be more complex. A folder a might include - somewhere deep inside - a link to a different folder b and inside b there might be a link to a folder c and somewhere within c there would be a link to folder a. Now you have a circle again.
It&#039;s not that it&#039;s not possible to prevent programs from hanging etc., but they hard links to directories are a problem and it was decided to not allow them to make things easier.
Though, Apple uses them in Mac OS X for Time Machine, but does not allow the user to create them.</description> <content:encoded><![CDATA[<p>@Srinivas Kotaru:</p><p>Hard links to directories and not supported, because you would be able to create &#8220;loops&#8221;.<br
/> Imagine you would go into a folder &#8220;a&#8221; and create a hard link &#8220;b&#8221; that would link to the folder &#8220;a&#8221;. This would create and endless loop. Imagine you would tar the directory a now.<br
/> Tar would go into directory a and find a directory b in it. Then it will try to go into b, but because it is a hard link to a, it will be in folder a again. There, it would again see the folder &#8220;b&#8221; and when it does into this folder, because of the hard link, end up in a again. And this would never stop, because you created a circle.<br
/> In this example it&#8217;s easy to figure out. But the situation might be more complex. A folder a might include &#8211; somewhere deep inside &#8211; a link to a different folder b and inside b there might be a link to a folder c and somewhere within c there would be a link to folder a. Now you have a circle again.<br
/> It&#8217;s not that it&#8217;s not possible to prevent programs from hanging etc., but they hard links to directories are a problem and it was decided to not allow them to make things easier.<br
/> Though, Apple uses them in Mac OS X for Time Machine, but does not allow the user to create them.</p> ]]></content:encoded> </item> <item><title>By: Srinivas Kotaru</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-174654</link> <dc:creator>Srinivas Kotaru</dc:creator> <pubDate>Wed, 05 Oct 2011 18:49:29 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-174654</guid> <description>I knew that hard links cannot be linked to folders,However unable to find reason behind this? I did lot of googling but still unable to get correct answer Can somebody give me reason for this in simple english?
Srinivas</description> <content:encoded><![CDATA[<p>I knew that hard links cannot be linked to folders,However unable to find reason behind this? I did lot of googling but still unable to get correct answer Can somebody give me reason for this in simple english?</p><p>Srinivas</p> ]]></content:encoded> </item> <item><title>By: mallick</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-173627</link> <dc:creator>mallick</dc:creator> <pubDate>Mon, 29 Aug 2011 10:07:27 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-173627</guid> <description>when i right click on a file then how the os gets it&#039;s properties file. i.e in os where those files are stored</description> <content:encoded><![CDATA[<p>when i right click on a file then how the os gets it&#8217;s properties file. i.e in os where those files are stored</p> ]]></content:encoded> </item> <item><title>By: Aman Bedi</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-172613</link> <dc:creator>Aman Bedi</dc:creator> <pubDate>Wed, 20 Jul 2011 16:42:46 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-172613</guid> <description>@ Anjali
please let us know the output and how are you trying to access the softlink?
if you open nautilus and try to type the path of the soft link, it will appear as a short-cut (like in windows).
Try to browse it in X windows.</description> <content:encoded><![CDATA[<p>@ Anjali</p><p>please let us know the output and how are you trying to access the softlink?</p><p>if you open nautilus and try to type the path of the soft link, it will appear as a short-cut (like in windows).</p><p>Try to browse it in X windows.</p> ]]></content:encoded> </item> <item><title>By: Anjali</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-169830</link> <dc:creator>Anjali</dc:creator> <pubDate>Mon, 14 Mar 2011 13:06:19 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-169830</guid> <description>Hi
I have created the softlink.......but not working</description> <content:encoded><![CDATA[<p>Hi</p><p>I have created the softlink&#8230;&#8230;.but not working</p> ]]></content:encoded> </item> <item><title>By: ramesh</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-168683</link> <dc:creator>ramesh</dc:creator> <pubDate>Thu, 10 Feb 2011 08:28:44 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-168683</guid> <description>thank u vivek  very good infomation
and nice explain.</description> <content:encoded><![CDATA[<p>thank u vivek  very good infomation<br
/> and nice explain.</p> ]]></content:encoded> </item> <item><title>By: Morph</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-149475</link> <dc:creator>Morph</dc:creator> <pubDate>Tue, 14 Jul 2009 05:40:34 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-149475</guid> <description>Ya the links cannot be used for directories and also you should not change the default file permissions of symbolic links file by using chmod command lest they will grant the user all the rights to the file. The sys admins therefore disable access to the /etc  directory because if you had access to the directory a simple symbolic link to /etc/passwd could get you all the access you want to the system.
see this &lt;a href=&quot;http://ramannanda.blogspot.com/2009/07/linux-hack-symbolic-and-hard-links.html&quot; rel=&quot;nofollow&quot;&gt;link&lt;/a&gt;</description> <content:encoded><![CDATA[<p>Ya the links cannot be used for directories and also you should not change the default file permissions of symbolic links file by using chmod command lest they will grant the user all the rights to the file. The sys admins therefore disable access to the /etc  directory because if you had access to the directory a simple symbolic link to /etc/passwd could get you all the access you want to the system.<br
/> see this <a
href="http://ramannanda.blogspot.com/2009/07/linux-hack-symbolic-and-hard-links.html" rel="nofollow">link</a></p> ]]></content:encoded> </item> <item><title>By: hw</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-148837</link> <dc:creator>hw</dc:creator> <pubDate>Thu, 04 Jun 2009 21:13:22 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-148837</guid> <description>soft links are often used to link to directories, e.g.
cdrom -&gt; /media/cdrom/
floppy -&gt; /media/floppy/</description> <content:encoded><![CDATA[<p>soft links are often used to link to directories, e.g.<br
/> cdrom -&gt; /media/cdrom/<br
/> floppy -&gt; /media/floppy/</p> ]]></content:encoded> </item> <item><title>By: lv</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-148782</link> <dc:creator>lv</dc:creator> <pubDate>Tue, 02 Jun 2009 03:48:31 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-148782</guid> <description>@Robertson
That is not really correct. Hard links cannot link directories however soft links can</description> <content:encoded><![CDATA[<p>@Robertson<br
/> That is not really correct. Hard links cannot link directories however soft links can</p> ]]></content:encoded> </item> <item><title>By: ROBERTSON</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-148094</link> <dc:creator>ROBERTSON</dc:creator> <pubDate>Mon, 13 Apr 2009 06:35:25 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-148094</guid> <description>Hardlink or softlink is only for files and not for folders.
/etc is a folder name. Choose any file name under it
like
$ln /etc/test.log /tmp/test_file</description> <content:encoded><![CDATA[<p>Hardlink or softlink is only for files and not for folders.<br
/> /etc is a folder name. Choose any file name under it<br
/> like<br
/> $ln /etc/test.log /tmp/test_file</p> ]]></content:encoded> </item> <item><title>By: Vivek Gite</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-146080</link> <dc:creator>Vivek Gite</dc:creator> <pubDate>Tue, 09 Dec 2008 14:37:52 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-146080</guid> <description>@ kaos,
Yes. Here is output from my desktop:
&lt;pre&gt;ln /etc /tmp/test
ln: `xy&#039;: hard link not allowed for directory&lt;/pre&gt;</description> <content:encoded><![CDATA[<p>@ kaos,</p><p>Yes. Here is output from my desktop:</p><pre>ln /etc /tmp/test
ln: `xy': hard link not allowed for directory</pre>]]></content:encoded> </item> <item><title>By: kaos</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-146079</link> <dc:creator>kaos</dc:creator> <pubDate>Tue, 09 Dec 2008 14:34:33 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-146079</guid> <description>&lt;em&gt;Hard links cannot &quot;links&quot; directories&lt;/em&gt;?</description> <content:encoded><![CDATA[<p><em>Hard links cannot &#8220;links&#8221; directories</em>?</p> ]]></content:encoded> </item> <item><title>By: Balakumar</title><link>http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-144175</link> <dc:creator>Balakumar</dc:creator> <pubDate>Thu, 26 Jun 2008 07:01:37 +0000</pubDate> <guid
isPermaLink="false">http://www.cyberciti.biz/tips/understanding-unixlinux-symbolic-soft-and-hard-links.html#comment-144175</guid> <description>Thank u Vivek Gite Sir,
for posting very nice article about linux filesystem...</description> <content:encoded><![CDATA[<p>Thank u Vivek Gite Sir,<br
/> for posting very nice article about linux filesystem&#8230;</p> ]]></content:encoded> </item> </channel> </rss>
