<?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: Link two Directories in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626556#M40066</link>
    <description>Hi George,&lt;BR /&gt;&lt;BR /&gt;One minor point to add:  If /mnt1a/george/data already exists, the ln (with or without -s) command will fail.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Thu, 06 Dec 2001 14:57:29 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2001-12-06T14:57:29Z</dc:date>
    <item>
      <title>Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626550#M40060</link>
      <description>Hello Experts&lt;BR /&gt;Can you tell me how can I link two directories?&lt;BR /&gt;e.g.&lt;BR /&gt;&lt;BR /&gt;/mnt1a/george/data-&amp;gt;mnt2a/root/data</description>
      <pubDate>Thu, 06 Dec 2001 09:24:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626550#M40060</guid>
      <dc:creator>George Nikoloudis_1</dc:creator>
      <dc:date>2001-12-06T09:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626551#M40061</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ln -s &lt;SOURCE_DIR&gt; &lt;DEST_DIR&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DEST_DIR&gt;&lt;/SOURCE_DIR&gt;</description>
      <pubDate>Thu, 06 Dec 2001 09:27:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626551#M40061</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2001-12-06T09:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626552#M40062</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;ln -s /mnt2a/root/data /mnt1a/george/data&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Fr??d??ric</description>
      <pubDate>Thu, 06 Dec 2001 09:28:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626552#M40062</guid>
      <dc:creator>Frederic Sevestre</dc:creator>
      <dc:date>2001-12-06T09:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626553#M40063</link>
      <description>Hi &lt;BR /&gt;go to the dir you wnat the linked dir to be&lt;BR /&gt;cd mnt2a/root &lt;BR /&gt;then do &lt;BR /&gt;ln -s /mnt1a/george/data data</description>
      <pubDate>Thu, 06 Dec 2001 09:30:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626553#M40063</guid>
      <dc:creator>Etienne Holm</dc:creator>
      <dc:date>2001-12-06T09:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626554#M40064</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Assuming that mnt2a/root/data currently contains the data and /mnt1a/george/data is the link, &lt;BR /&gt;&lt;BR /&gt;If you want a hard-link,&lt;BR /&gt;&lt;BR /&gt;# ln /mnt2a/root/data /mnt1a/george/data &lt;BR /&gt;&lt;BR /&gt;If you want a soft-link, &lt;BR /&gt;&lt;BR /&gt;# ln -s /mnt2a/root/data /mnt1a/george/data&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong&lt;BR /&gt;Brainbench MVP for Unix Admin&lt;BR /&gt;&lt;A href="http://www.brainbench.com" target="_blank"&gt;http://www.brainbench.com&lt;/A&gt;</description>
      <pubDate>Thu, 06 Dec 2001 09:31:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626554#M40064</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2001-12-06T09:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626555#M40065</link>
      <description>to get /mnt1a/george/data-&amp;gt; /mnt2a/root/data &lt;BR /&gt;type: &lt;BR /&gt;&lt;BR /&gt;ln -s /mnt2a/root/data /mnt1a/george/data</description>
      <pubDate>Thu, 06 Dec 2001 09:36:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626555#M40065</guid>
      <dc:creator>federico_3</dc:creator>
      <dc:date>2001-12-06T09:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626556#M40066</link>
      <description>Hi George,&lt;BR /&gt;&lt;BR /&gt;One minor point to add:  If /mnt1a/george/data already exists, the ln (with or without -s) command will fail.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Thu, 06 Dec 2001 14:57:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626556#M40066</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-06T14:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626557#M40067</link>
      <description>&amp;lt;mnt2a/root/data &amp;gt;&amp;gt;&lt;BR /&gt;&lt;BR /&gt;cd /mnt1a/george&lt;BR /&gt;ll data (just to confirm there is no such directory existing; if it is move or remove it)&lt;BR /&gt;ln -s data  /mnt2a/root/data&lt;BR /&gt;&lt;BR /&gt;Another point, do not worry about the permissions of /mnt1a/george/data . Irrespective of what it is the permission of the actual directory will be counted during access.&lt;BR /&gt;&lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Thu, 06 Dec 2001 15:07:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626557#M40067</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2001-12-06T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626558#M40068</link>
      <description>Regarding link, there are hard link and symbolic link, for directory link, you only can use the later one. &lt;BR /&gt;&lt;BR /&gt;Use the ln command with -s to create a symbolic link. The first argument identifies the existing file that you wish to link to. Additional arguments specify the path names of the symbolic links you wish to create to the existing file.&lt;BR /&gt;&lt;BR /&gt;In your case, it is &lt;BR /&gt;ln -s /mnt2a/root/date /mnt1a/george/date&lt;BR /&gt;&lt;BR /&gt;Shawn&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Dec 2001 16:25:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626558#M40068</guid>
      <dc:creator>Victor_5</dc:creator>
      <dc:date>2001-12-06T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626559#M40069</link>
      <description>Hi George,&lt;BR /&gt;&lt;BR /&gt;Try,&lt;BR /&gt;&lt;BR /&gt;ln -s /mnt2a/root/data /mnt1a/george/data&lt;BR /&gt;&lt;BR /&gt;hope this helps.&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;</description>
      <pubDate>Thu, 06 Dec 2001 16:41:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626559#M40069</guid>
      <dc:creator>Sanjay_6</dc:creator>
      <dc:date>2001-12-06T16:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626560#M40070</link>
      <description>Hi all,&lt;BR /&gt;&lt;BR /&gt;My earlier reply definitely was not a good one.  Shawn points out correctly that ln (without -s) will fail if the source is a directory.  You must use ln -s on directories.&lt;BR /&gt;&lt;BR /&gt;To clarify (hopefully) the point I was trying to make earlier:&lt;BR /&gt;ln -s will fail if the destination exists and is a file.  ln -s will succeed if the destination exists and is a directory however the link will be created subordinate to the destination directory.  Examples:&lt;BR /&gt;&lt;BR /&gt;# ll&lt;BR /&gt;total 0&lt;BR /&gt;drwxr-xr-x  2 root  sys   96 Dec  6 11:39 d&lt;BR /&gt;-rw-r--r--  1 root  sys    0 Dec  6 11:40 e&lt;BR /&gt;drwxr-xr-x  2 root  sys   96 Dec  6 11:40 f&lt;BR /&gt;# ln d e&lt;BR /&gt;ln: &lt;D&gt; directory&lt;BR /&gt;# ln d f&lt;BR /&gt;ln: &lt;D&gt; directory&lt;BR /&gt;# ln -s d e&lt;BR /&gt;ln: e exists&lt;BR /&gt;# ln -s d f&lt;BR /&gt;# ll&lt;BR /&gt;total 0&lt;BR /&gt;drwxr-xr-x  2 root  sys   96 Dec  6 11:39 d&lt;BR /&gt;-rw-r--r--  1 root  sys    0 Dec  6 11:40 e&lt;BR /&gt;drwxr-xr-x  2 root  sys   96 Dec  6 11:40 f&lt;BR /&gt;# ll f&lt;BR /&gt;lrwxr-xr-x  1 root  sys    1 Dec  6 11:40 d -&amp;gt; d&lt;BR /&gt;&lt;BR /&gt;Sorry for my earlier poor post.  I added confusion to the issue instead of clarification.&lt;BR /&gt;&lt;BR /&gt;Darrell&lt;/D&gt;&lt;/D&gt;</description>
      <pubDate>Thu, 06 Dec 2001 16:50:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626560#M40070</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-12-06T16:50:10Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626561#M40071</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;for hard link&lt;BR /&gt;  ln /&lt;DIR&gt; /&lt;DIR&gt;&lt;BR /&gt;for soft (symbolic) link &lt;BR /&gt;  ln -s /&lt;DIR&gt; /&lt;DIR&gt;&lt;BR /&gt;&lt;BR /&gt;  note: ln does not create hard links across &lt;BR /&gt;        filesystems.&lt;BR /&gt;joey&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Thu, 06 Dec 2001 17:01:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626561#M40071</guid>
      <dc:creator>Kurtkarl</dc:creator>
      <dc:date>2001-12-06T17:01:10Z</dc:date>
    </item>
    <item>
      <title>Re: Link two Directories</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626562#M40072</link>
      <description>Hello&lt;BR /&gt;&lt;BR /&gt;The manpage for ln shows as if 2 directories can be hard linked, but in the manpage it states: "The ln command does not permit hard links to a directory."&lt;BR /&gt;To link directories the -s option must be used.&lt;BR /&gt;</description>
      <pubDate>Thu, 17 Jul 2003 15:29:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/link-two-directories/m-p/2626562#M40072</guid>
      <dc:creator>Ron Freeland</dc:creator>
      <dc:date>2003-07-17T15:29:47Z</dc:date>
    </item>
  </channel>
</rss>

