<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Tech-Recipes - Latest Comments in Create a Symbolic Link in UNIX</title><link>http://tech-recipes.disqus.com/</link><description>Cookbook of Tech Tutorials</description><atom:link href="https://tech-recipes.disqus.com/create_a_symbolic_link_in_unix_unix_tech_recipes/latest.rss" rel="self"></atom:link><language>en</language><lastBuildDate>Tue, 14 Dec 2010 12:16:58 -0000</lastBuildDate><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-111610030</link><description>&lt;p&gt;Thanks Jim for a very good explanation!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">NN</dc:creator><pubDate>Tue, 14 Dec 2010 12:16:58 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-97851185</link><description>&lt;p&gt;Oh...sorry...one last thing...a file is not actually deleted unless its hard link count is 1.  *THEN* it is gone.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Tue, 16 Nov 2010 10:35:34 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-97850489</link><description>&lt;p&gt;Vick:  Sorry, but that isn't correct.  If you have a file called 'new', for instance, and create a hard link called 'new2', both 'new' and 'new2' point to the same physical location on the hard drive.  If you do an 'ls -l new' you will see something like:&lt;/p&gt;&lt;p&gt;-rw-r--r-- 2 &amp;lt;user&amp;gt; &amp;lt;group&amp;gt; &amp;lt;size&amp;gt; &amp;lt;date&amp;gt; new&lt;/p&gt;&lt;p&gt;That *2* is the number of hard links to the file.  Every file upon creation has one hard link to the location itself, which is why you normally see '1' in this spot for files.&lt;/p&gt;&lt;p&gt;Now, to get back to what I was explaining, if you have 'new' and 'new2' which is a hard link to 'new', and you delete 'new', the file is not gone.  'new2' still points to that file and is completely usable.  Other hard links are not 'magically' deleted...and that is the value in a hard link.&lt;/p&gt;&lt;p&gt;If 'new2' was a soft link, however, to 'new', and you deleted 'new', then 'new2' would still exist, but would not be valid any longer, since the file 'new' that it points to no longer exists.&lt;/p&gt;&lt;p&gt;Hope this helps.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jim</dc:creator><pubDate>Tue, 16 Nov 2010 10:33:55 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-91400016</link><description>&lt;p&gt;A hard link is another name for an existing file; there is no difference between the link and the original file. So if you make a hard link from file `foo' to file `bar', and then remove file `bar', file `foo' is also removed. Each file has at least one hard link, which is the original file name itself. Directories always have at least two hard links--the directory name itself (which appears in its parent directory) and the special file `.' inside the directory. Likewise, when you make a new subdirectory, the parent directory gains a new hard link for the special file `..' inside the new subdirectory. &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Amster</dc:creator><pubDate>Fri, 29 Oct 2010 06:05:15 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-54005447</link><description>&lt;p&gt;What is the Difference between symlink and hard link&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Pranab</dc:creator><pubDate>Thu, 03 Jun 2010 10:15:14 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-7636888</link><description>&lt;p&gt;&amp;gt; ln -s /export/space/common/archive /archive&lt;br&gt;Just what i was looking for. Thanks! &lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Thomas</dc:creator><pubDate>Mon, 30 Mar 2009 12:53:17 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-6924799</link><description>&lt;p&gt;Maybe you could provide the command syntax to make it a hard link:&lt;/p&gt;&lt;p&gt;ln ../init.d/httpd S77httpd&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Tom</dc:creator><pubDate>Thu, 05 Mar 2009 17:20:58 -0000</pubDate></item><item><title>Re: Create a Symbolic Link in UNIX</title><link>http://www.tech-recipes.com/rx/172/create_a_symbolic_link_in_unix_solaris_linux/#comment-5623140</link><description>&lt;p&gt;cd /etc/rc2.d&lt;br&gt;ln -s ../init.d/httpd S77httpd&lt;/p&gt;&lt;p&gt;All rc links should be hardlinks.  This is not a good example.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Nathan Stiles</dc:creator><pubDate>Wed, 28 Jan 2009 14:15:22 -0000</pubDate></item></channel></rss>