<?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: Difference between soft and hard links in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698350#M549458</link>
    <description>But Gurus, Why do we need both hard and soft links?&lt;BR /&gt;Can any one of you explain it with the help of a real example which really makes use of this distinction in hard and soft links?</description>
    <pubDate>Fri, 30 Dec 2005 00:25:30 GMT</pubDate>
    <dc:creator>Sathyaswarupa</dc:creator>
    <dc:date>2005-12-30T00:25:30Z</dc:date>
    <item>
      <title>Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698344#M549452</link>
      <description>what is the use of a hard link and a soft link?</description>
      <pubDate>Tue, 27 Dec 2005 05:44:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698344#M549452</guid>
      <dc:creator>Sathyaswarupa</dc:creator>
      <dc:date>2005-12-27T05:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698345#M549453</link>
      <description>Hello, &lt;BR /&gt;&lt;BR /&gt;Here is a very good resource about the differences between hard and soft links, &lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://linuxgazette.net/105/pitcher.html" target="_blank"&gt;http://linuxgazette.net/105/pitcher.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Tue, 27 Dec 2005 05:49:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698345#M549453</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-12-27T05:49:10Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698346#M549454</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;"man ln" for more info.&lt;BR /&gt;&lt;BR /&gt;refer to this discussion as well:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=605109" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=605109&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards.&lt;BR /&gt;(p.s. please remember to assign points.)</description>
      <pubDate>Tue, 27 Dec 2005 06:04:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698346#M549454</guid>
      <dc:creator>Joseph Loo</dc:creator>
      <dc:date>2005-12-27T06:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698347#M549455</link>
      <description>Normally, soft links are used. Hard links and soft links have differents properties, but soft links are more common.&lt;BR /&gt;&lt;BR /&gt;The most important.-&lt;BR /&gt;&lt;BR /&gt;Soft links:&lt;BR /&gt;&lt;BR /&gt;They are different files (different inodes).&lt;BR /&gt;- If you delete the link, the original file is intact&lt;BR /&gt;- If you delete the original file, the link will reference to an unexistant file.&lt;BR /&gt;&lt;BR /&gt;They can transverse file systems.&lt;BR /&gt;&lt;BR /&gt;Hard links:&lt;BR /&gt;&lt;BR /&gt;They are the same file (same inode).&lt;BR /&gt;- If you delete any of the files, the remaining file will still point to the data.&lt;BR /&gt;&lt;BR /&gt;They can be created only on the same file system that the file that references.</description>
      <pubDate>Tue, 27 Dec 2005 07:36:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698347#M549455</guid>
      <dc:creator>Ivan Ferreira</dc:creator>
      <dc:date>2005-12-27T07:36:20Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698348#M549456</link>
      <description>&lt;BR /&gt;Dear Sathya,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;1. The Soft links are different files having different inodes. You can check this by&lt;BR /&gt;&lt;BR /&gt;#ls -li &lt;FILENAME&gt;&lt;BR /&gt;&lt;BR /&gt;note the INODE number of the files.&lt;BR /&gt;&lt;BR /&gt;The link(ed) file's content will be have the PATH to the original file. So even if you delete the link, the original file is intact. &lt;BR /&gt;&lt;BR /&gt;2. Hard links are the same file, which has the the same inode( check it with #ls -li).&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;And one more difference is,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;softlink  ---&amp;gt; can be made across the filesystems&lt;BR /&gt;&lt;BR /&gt;Hardlink  ---&amp;gt; can be made ONLY within a filesystem&lt;BR /&gt;&lt;BR /&gt;With Regards,&lt;BR /&gt;&lt;BR /&gt;Siva.&lt;/FILENAME&gt;</description>
      <pubDate>Tue, 27 Dec 2005 09:11:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698348#M549456</guid>
      <dc:creator>Sivakumar TS</dc:creator>
      <dc:date>2005-12-27T09:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698349#M549457</link>
      <description>&lt;BR /&gt;A hard link is basically duplicate entry on the same filesystem.  Generally files have one name associated with a inode entry.  A hard link is a directory entry with ANOTHER NAME associated with the same inode entry. With a hard link you directly go to the INODE to read/write/execute a file.&lt;BR /&gt;&lt;BR /&gt;make a link do an ls -li on both names  and you will find they have same inode entry.&lt;BR /&gt;&lt;BR /&gt;A soft link is also called a symoblic link. A symbolic link points to the real file name location. Since the entry is a pointer, It can point to entries on any filesystem. When accessing a file via a soft link,  the system sends you to the real file name, which then directs you to the INODE location to read/write/execute a file.&lt;BR /&gt;&lt;BR /&gt;Rory</description>
      <pubDate>Thu, 29 Dec 2005 13:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698349#M549457</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2005-12-29T13:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698350#M549458</link>
      <description>But Gurus, Why do we need both hard and soft links?&lt;BR /&gt;Can any one of you explain it with the help of a real example which really makes use of this distinction in hard and soft links?</description>
      <pubDate>Fri, 30 Dec 2005 00:25:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698350#M549458</guid>
      <dc:creator>Sathyaswarupa</dc:creator>
      <dc:date>2005-12-30T00:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698351#M549459</link>
      <description>&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#28" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#28&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-Arun</description>
      <pubDate>Fri, 30 Dec 2005 00:32:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698351#M549459</guid>
      <dc:creator>Arunvijai_4</dc:creator>
      <dc:date>2005-12-30T00:32:31Z</dc:date>
    </item>
    <item>
      <title>Re: Difference between soft and hard links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698352#M549460</link>
      <description>&lt;BR /&gt;You can not link a directory to a another using a hard link&lt;BR /&gt;you can link a directory with a soft link.&lt;BR /&gt;&lt;BR /&gt;Traditionally hard&lt;BR /&gt;&lt;BR /&gt;On my system /usr/sbin has the following hardlinks associated with inod 22596&lt;BR /&gt;ls -li |grep 22596&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvchange&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvcreate&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvdisplay&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvextend&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvlnboot&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvmerge&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvreduce&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvremove&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvrmboot&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvsplit&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 lvsync&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 nomwcsyncd&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 pvchange&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 pvck&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 pvcreate&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 pvdisplay&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 pvmove&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 pvremove&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgcfgbackup&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgcfgrestore&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgchange&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgchgid&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgcreate&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgdisplay&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgexport&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgextend&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgimport&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgreduce&lt;BR /&gt; 22596 -r-sr-xr-x  31 root       sys         557056 Nov 14  2000 vgremove&lt;BR /&gt;&lt;BR /&gt;Note that this is the same executable with a different name.  This arangement save physical space, because there  are not 31 seperate copies of the same same file, but 1 copy with 31 entries.  this save space and reduces the type and number of options you need to invoke the using the same name.  Traditionally hard links let you put the same file name in different directories, the above example is more common.&lt;BR /&gt;&lt;BR /&gt;ls -ld /opt/java*&lt;BR /&gt;lrwxr-xr-x   1 root       sys             12 Nov 16 12:26 /opt/java -&amp;gt; /opt/java1.3&lt;BR /&gt;lrwxr-xr-x   1 root       sys             16 &lt;BR /&gt;dr-xr-xr-x   4 bin        bin             96 Mar  9  2004 /opt/java1.2&lt;BR /&gt;dr-xr-xr-x   3 bin        bin             96 Mar  9  2004 /opt/java1.3&lt;BR /&gt;dr-xr-xr-x   3 bin        bin             96 Mar 10  2004 /opt/java1.4&lt;BR /&gt;&lt;BR /&gt;On one of my systems I have 3 version of Java&lt;BR /&gt;java1.2, java1.3 java1.4.&lt;BR /&gt;&lt;BR /&gt;We have application that requires java1.3&lt;BR /&gt;The applaciation path points to /opt/java  which is a soft link to /opt/java1.3.&lt;BR /&gt;When the application is upgraded and needs java1.4, I will not have to install java1.4, I only have to change the /opt/java soft link to point ot /opt/java1.4&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;rory&lt;BR /&gt;</description>
      <pubDate>Fri, 30 Dec 2005 03:09:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-soft-and-hard-links/m-p/3698352#M549460</guid>
      <dc:creator>Rory R Hammond</dc:creator>
      <dc:date>2005-12-30T03:09:03Z</dc:date>
    </item>
  </channel>
</rss>

