<?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 Removing linked files in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437786#M5935</link>
    <description>I have a "D" series server running HP-UX 11.0.  I have a couple files that are soft links (lrwxrwxrxw .... filename) to files that are no longer there.  If I try to delete the file, it tells me the device is busy and the file is not removed.  Anybody know how to delete these guys?  It isn't hurting anything having them out there except for my pride!  I thought I knew how to remove files:-)  Little help..... thank you.</description>
    <pubDate>Fri, 18 Aug 2000 13:17:36 GMT</pubDate>
    <dc:creator>Weary in West Chester</dc:creator>
    <dc:date>2000-08-18T13:17:36Z</dc:date>
    <item>
      <title>Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437786#M5935</link>
      <description>I have a "D" series server running HP-UX 11.0.  I have a couple files that are soft links (lrwxrwxrxw .... filename) to files that are no longer there.  If I try to delete the file, it tells me the device is busy and the file is not removed.  Anybody know how to delete these guys?  It isn't hurting anything having them out there except for my pride!  I thought I knew how to remove files:-)  Little help..... thank you.</description>
      <pubDate>Fri, 18 Aug 2000 13:17:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437786#M5935</guid>
      <dc:creator>Weary in West Chester</dc:creator>
      <dc:date>2000-08-18T13:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437787#M5936</link>
      <description>&lt;BR /&gt;you need to identify who is using the file in order to delete it. do an fuser &lt;FILENAME&gt; to identify the process and try to kill the process first, or just user fuser -fk &lt;FILENAME&gt; to just kill off the process, then you can rm the link.&lt;/FILENAME&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Fri, 18 Aug 2000 13:24:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437787#M5936</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-08-18T13:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437788#M5937</link>
      <description>Hmm..  you might want to check to make sure that the file is not in use with:&lt;BR /&gt;fuser -cu /path/to/filename&lt;BR /&gt;&lt;BR /&gt;then follow this thread:&lt;BR /&gt;&lt;A href="http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9b567e990647d4118fee0090279cd0f9,00.html" target="_blank"&gt;http://my1.itrc.hp.com/cm/QuestionAnswer/1,1150,0x9b567e990647d4118fee0090279cd0f9,00.html&lt;/A&gt;</description>
      <pubDate>Fri, 18 Aug 2000 13:25:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437788#M5937</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-08-18T13:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437789#M5938</link>
      <description>Bill,&lt;BR /&gt;&lt;BR /&gt;What is the precise error that you get? and what did the links used to point to?&lt;BR /&gt;&lt;BR /&gt;If the soft link does not point anywhere then I can't see any reason why you can't rm it - it can't be in use because it's not a file.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John</description>
      <pubDate>Fri, 18 Aug 2000 13:30:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437789#M5938</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-08-18T13:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437790#M5939</link>
      <description>Kofi,&lt;BR /&gt;&lt;BR /&gt;fuser -cu returned:&lt;BR /&gt;/filename. &lt;BR /&gt;&lt;BR /&gt;Also, fuser -fk /filename returned:&lt;BR /&gt;/filename: stat: No such file or directory&lt;BR /&gt;fuser could not find or access file /filename</description>
      <pubDate>Fri, 18 Aug 2000 13:41:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437790#M5939</guid>
      <dc:creator>Weary in West Chester</dc:creator>
      <dc:date>2000-08-18T13:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437791#M5940</link>
      <description>What are the links pointing too?&lt;BR /&gt;&lt;BR /&gt;it could be that they point to 'open and unlinked files'. Oracle creates a tmp file, open's it and then deletes it, but keeps it open. fuser etc can't see this. However, I've never seen Oracle have a sym link to the file.</description>
      <pubDate>Fri, 18 Aug 2000 13:51:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437791#M5940</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-18T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437792#M5941</link>
      <description>&lt;BR /&gt;I think Andy has the answer, ive seen the same thing with some wierd application. Its not going to be easy to rm this link without shutting down the application or logging off the user who has the file still open. If you shutdown your apps or log everyone off overnight for backup then write a cron job to try to rm the link every hour or so overnight and hopefully by morning its gone.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Aug 2000 13:56:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437792#M5941</guid>
      <dc:creator>Stefan Farrelly</dc:creator>
      <dc:date>2000-08-18T13:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437793#M5942</link>
      <description>Andy / John,&lt;BR /&gt;&lt;BR /&gt;The links don't point to anything.  Usually, when you "LL" filename you see the links pointing to some other file.  Hmmm, not here.  It just says:&lt;BR /&gt;&lt;BR /&gt;lrwxrwxrwx 1 root root 20 date/time filename&lt;BR /&gt;                not&lt;BR /&gt;lrwxrwxrwx 1 root root 20 date/time filename  --&amp;gt; some-other-filename&lt;BR /&gt;&lt;BR /&gt;There's no --&amp;gt; symbol pointing to the file it's linked to.  Weird!!</description>
      <pubDate>Fri, 18 Aug 2000 13:57:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437793#M5942</guid>
      <dc:creator>Weary in West Chester</dc:creator>
      <dc:date>2000-08-18T13:57:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437794#M5943</link>
      <description>Bill:&lt;BR /&gt;&lt;BR /&gt;is it possible that the alias for ll has been redefined?  try the following:&lt;BR /&gt;&lt;BR /&gt;ls -lF  filename or &lt;BR /&gt;ls -lL filename?</description>
      <pubDate>Fri, 18 Aug 2000 14:02:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437794#M5943</guid>
      <dc:creator>Kofi ARTHIABAH</dc:creator>
      <dc:date>2000-08-18T14:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437795#M5944</link>
      <description>Bill, try creating a bogus file that the link used to be linked to using the touch command.  Now try removing the link. Next, remove the bogus file.&lt;BR /&gt;&lt;BR /&gt;Tony</description>
      <pubDate>Fri, 18 Aug 2000 14:05:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437795#M5944</guid>
      <dc:creator>Anthony deRito</dc:creator>
      <dc:date>2000-08-18T14:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437796#M5945</link>
      <description>You could try 'unlink &lt;LINK name="" /&gt;' it might work. It's raw and nasty :-)&lt;BR /&gt;&lt;BR /&gt;You want to check the man page first so your aware of how nasty!&lt;BR /&gt;&lt;BR /&gt;Also, might be worth running the attached program. It display open files that are unlinked. Obviously doesn't show there names, but you get the inode, filesystem and size of the file. Might help.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Aug 2000 14:15:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437796#M5945</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-18T14:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437797#M5946</link>
      <description>The plot thickens.  I just rebooted the system into single user mode - - working with the assumption that some application has the files open....  Ready for this, the files that were once links are now directories!   I'm current;y bringing the system to multiuser mode to see if they go back to links again..  do do do do, do do do do .... (twilight zone...)&lt;BR /&gt;&lt;BR /&gt;I let you all know what happens:-)</description>
      <pubDate>Fri, 18 Aug 2000 14:17:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437797#M5946</guid>
      <dc:creator>Weary in West Chester</dc:creator>
      <dc:date>2000-08-18T14:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437798#M5947</link>
      <description>You could try 'unlink &lt;LINK name="" /&gt;' it might work. It's nice and nasty. Check the man page first.&lt;BR /&gt;&lt;BR /&gt;Also, you could try the attached program. it shows open files that are unlinked. Obviously not the name, but you get the inode number, filesystem and size of the file. It might help.</description>
      <pubDate>Fri, 18 Aug 2000 14:18:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437798#M5947</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-18T14:18:48Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437799#M5948</link>
      <description>Have you tried to use cmd unlink ?</description>
      <pubDate>Fri, 18 Aug 2000 14:24:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437799#M5948</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-18T14:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437800#M5949</link>
      <description>Not sure my last post made it.&lt;BR /&gt;&lt;BR /&gt;Try doing an 'unlink &lt;LINK name="" /&gt;'. it might work, but check the man page first</description>
      <pubDate>Fri, 18 Aug 2000 14:24:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437800#M5949</guid>
      <dc:creator>Andy Monks</dc:creator>
      <dc:date>2000-08-18T14:24:23Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437801#M5950</link>
      <description>Bill, &lt;BR /&gt;Take a look at PHCO_18676 patch description. Do you have it installed?</description>
      <pubDate>Fri, 18 Aug 2000 14:25:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437801#M5950</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-18T14:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437802#M5951</link>
      <description>You could also try creating another link of the same name in the same directory using ln -f -s command.  Documentation states that -f destroys current links and creates a new one.  The -s option specifies a soft link instead of a hard one.  ln -f -i -s will prompt before actually carrying out the command.  Once it's linked to an existing file, you should be able to remove the link.</description>
      <pubDate>Fri, 18 Aug 2000 14:43:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437802#M5951</guid>
      <dc:creator>Andrew Maslin</dc:creator>
      <dc:date>2000-08-18T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437803#M5952</link>
      <description>I have attached a c program called inspectsymlink.c.  Please compile it by doing:&lt;BR /&gt;cc inspectsymlink.c -o inspectsymlink&lt;BR /&gt;&lt;BR /&gt;It should compile with the bundled cc compiler or any other c or c++ compiler.&lt;BR /&gt;&lt;BR /&gt;Then run it by doing:&lt;BR /&gt;./inspectsymlink /path/to/funky/symlink&lt;BR /&gt;&lt;BR /&gt;And then post the results.  The data it prints may help in understanding what is going on.&lt;BR /&gt;</description>
      <pubDate>Fri, 18 Aug 2000 16:07:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437803#M5952</guid>
      <dc:creator>Paul Hite</dc:creator>
      <dc:date>2000-08-18T16:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: Removing linked files</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437804#M5953</link>
      <description>GOT IT!!  It was an NFS mounted filesystem that the files were linked to.  The remote system has been gone for a while now but the links remained.  I deleted the file systems via SAM and the link files are gone.  HA, take that mysterious files!  Be gone with you!!</description>
      <pubDate>Fri, 18 Aug 2000 18:13:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/removing-linked-files/m-p/2437804#M5953</guid>
      <dc:creator>Weary in West Chester</dc:creator>
      <dc:date>2000-08-18T18:13:11Z</dc:date>
    </item>
  </channel>
</rss>

