<?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: Symbolic links in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606796#M35243</link>
    <description>Hi Dan,&lt;BR /&gt;&lt;BR /&gt;I'm not sure I follow but here goes (pardon me if this is too elementary):&lt;BR /&gt;&lt;BR /&gt;fileA exists in dirA&lt;BR /&gt;you want to move fileA to dirB&lt;BR /&gt;you want a symlink in dirB to fileA&lt;BR /&gt;&lt;BR /&gt;cd /dirA&lt;BR /&gt;mv fileA /dirB/fileA&lt;BR /&gt;ln -s /dirB/fileA symlnkA&lt;BR /&gt;&lt;BR /&gt;Now you should have a symlink (/dirA/symlnkA) pointing to /dirB/fileA&lt;BR /&gt;You can rm /dirA/symlnkA just as though it's a normal file.&lt;BR /&gt;You can rm /dirB/fileA and /dirA/symlnkA will still exist - it just points to a file that doesn't exist.&lt;BR /&gt;&lt;BR /&gt;It sounds like from your post that the filename for the symlink you are trying to remove actually has --&amp;gt; in it's name.  Try rm -i *filename.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
    <pubDate>Sat, 03 Nov 2001 01:04:22 GMT</pubDate>
    <dc:creator>Darrell Allen</dc:creator>
    <dc:date>2001-11-03T01:04:22Z</dc:date>
    <item>
      <title>Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606793#M35240</link>
      <description>How do you remove a link from the directory location where the file is referenced from. For instance I move a file to another location and in the process created a link in its former location pointing to the new location.  The link was improperly created but once created I cannot remove it.  there is a "- -&amp;gt;" ahead of the file name instead of behind it. I want the file in the new location and i want to reference it there and I also want the link to be in the old location.  any help would be greatly appreciated.  I have a number of files to move.&lt;BR /&gt;&lt;BR /&gt;Thanks&lt;BR /&gt;DKD</description>
      <pubDate>Fri, 02 Nov 2001 23:08:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606793#M35240</guid>
      <dc:creator>Dan Decker</dc:creator>
      <dc:date>2001-11-02T23:08:43Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606794#M35241</link>
      <description>- and &amp;gt; are bad in filenames.&lt;BR /&gt;&lt;BR /&gt;cd to the directory with the bad name. Enter&lt;BR /&gt;  rm ./--\&amp;gt;restofname&lt;BR /&gt;&lt;BR /&gt;This will delete the file.&lt;BR /&gt;\&amp;gt; prevents the &amp;gt; to mean send output to.&lt;BR /&gt;&lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 02 Nov 2001 23:55:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606794#M35241</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2001-11-02T23:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606795#M35242</link>
      <description>Not quite get what you mean .. I'm sure someone would. I'm throwing something here that you might know already. When moving files or dir, to preserve the sym link you can do this .. (simple eg : to move everything under /var/source to /var/dest)&lt;BR /&gt;&lt;BR /&gt;  # mkdir /var/dest&lt;BR /&gt;  # cd /var/source&lt;BR /&gt;  # find . |cpio -pvdumx /var/dest&lt;BR /&gt;&lt;BR /&gt;hope it helps a little ..</description>
      <pubDate>Fri, 02 Nov 2001 23:55:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606795#M35242</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2001-11-02T23:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606796#M35243</link>
      <description>Hi Dan,&lt;BR /&gt;&lt;BR /&gt;I'm not sure I follow but here goes (pardon me if this is too elementary):&lt;BR /&gt;&lt;BR /&gt;fileA exists in dirA&lt;BR /&gt;you want to move fileA to dirB&lt;BR /&gt;you want a symlink in dirB to fileA&lt;BR /&gt;&lt;BR /&gt;cd /dirA&lt;BR /&gt;mv fileA /dirB/fileA&lt;BR /&gt;ln -s /dirB/fileA symlnkA&lt;BR /&gt;&lt;BR /&gt;Now you should have a symlink (/dirA/symlnkA) pointing to /dirB/fileA&lt;BR /&gt;You can rm /dirA/symlnkA just as though it's a normal file.&lt;BR /&gt;You can rm /dirB/fileA and /dirA/symlnkA will still exist - it just points to a file that doesn't exist.&lt;BR /&gt;&lt;BR /&gt;It sounds like from your post that the filename for the symlink you are trying to remove actually has --&amp;gt; in it's name.  Try rm -i *filename.&lt;BR /&gt;&lt;BR /&gt;Darrell</description>
      <pubDate>Sat, 03 Nov 2001 01:04:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606796#M35243</guid>
      <dc:creator>Darrell Allen</dc:creator>
      <dc:date>2001-11-03T01:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606797#M35244</link>
      <description>Did you create a hardlink?&lt;BR /&gt;&lt;BR /&gt;Do this:&lt;BR /&gt;&lt;BR /&gt;ls -li *partofthefilename*&lt;BR /&gt;&lt;BR /&gt;go to the other directory and do the same. then post the results.&lt;BR /&gt;&lt;BR /&gt;thanks&lt;BR /&gt;&lt;BR /&gt;live free or die&lt;BR /&gt;harry</description>
      <pubDate>Sat, 03 Nov 2001 01:27:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606797#M35244</guid>
      <dc:creator>harry d brown jr</dc:creator>
      <dc:date>2001-11-03T01:27:38Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606798#M35245</link>
      <description>A file should never be - and &amp;gt;  &lt;BR /&gt;&lt;BR /&gt;cd to the directory with theat name. Enter &lt;BR /&gt;rm ./--\&amp;gt;restofname &lt;BR /&gt;&lt;BR /&gt;This will delete the bad file. &lt;BR /&gt;&lt;BR /&gt;If you want to symbolically link a file &lt;BR /&gt;&lt;BR /&gt;file y exists in dir x &lt;BR /&gt;You like to move file y to dir z &lt;BR /&gt;you want a symbolic link in dir z to file y &lt;BR /&gt;&lt;BR /&gt;cd /dir x&lt;BR /&gt;mv file y /dir z/file y &lt;BR /&gt;ln -s /dirz/filey linkY &lt;BR /&gt;&lt;BR /&gt;Now you will be having a symlink (/dirX/lnkA) pointing to /dirz/filey &lt;BR /&gt;You can rm /dirx/lnky just as though it's a normal file. &lt;BR /&gt;You can rm /dirz/filey and /dirz/lnky will still exist. It just points to a file that doesn't exist. &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps&lt;BR /&gt;&lt;BR /&gt;Ramesh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 04 Nov 2001 12:18:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606798#M35245</guid>
      <dc:creator>ramesh_6</dc:creator>
      <dc:date>2001-11-04T12:18:28Z</dc:date>
    </item>
    <item>
      <title>Re: Symbolic links</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606799#M35246</link>
      <description>Thanks to everyone who responed.  Sometimes when we aren't thinking very straight and the flu sort of takes control of your brain cells things happen that we don't intend or we just aren't thinking clearly.  You all have proved what a valuable resource this program is.  Thanks for your help.  Some instructions were more clearer than others and some time the most elemetary explainations are the most helpful.  Thanks again</description>
      <pubDate>Tue, 06 Nov 2001 19:18:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/symbolic-links/m-p/2606799#M35246</guid>
      <dc:creator>Dan Decker</dc:creator>
      <dc:date>2001-11-06T19:18:54Z</dc:date>
    </item>
  </channel>
</rss>

