<?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: One strange file can't be removed in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884080#M101600</link>
    <description>One other idea, at least for troubleshooting: use mv rather than rm.  If you find the right combination of letters or wildcards to grab this file, changing its name to something simple (that you can then delete at your convenience) may be preferable.&lt;BR /&gt;&lt;BR /&gt;Also, I hope you will post the solution you eventually employ to get rid of this pesky thing, I'm intrigued.&lt;BR /&gt;&lt;BR /&gt;--bmr</description>
    <pubDate>Fri, 17 Jan 2003 01:22:48 GMT</pubDate>
    <dc:creator>Brian M Rawlings</dc:creator>
    <dc:date>2003-01-17T01:22:48Z</dc:date>
    <item>
      <title>One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884075#M101595</link>
      <description>rm /dev/rmt/0mo&lt;BR /&gt;will fail to remove this file, due to the&lt;BR /&gt;message file not exist. But it is autually&lt;BR /&gt;existing in /dev/rmt. Anyone has the experience&lt;BR /&gt;about how to remove the strange file? Thanks.&lt;BR /&gt;&lt;BR /&gt;Note: I have tried&lt;BR /&gt;       rm /dev/rmt/*&lt;BR /&gt;       rm /dev/rmt/?0?&lt;BR /&gt;       rm /dev/rmt/?0*&lt;BR /&gt;      all of above are failed to remove.</description>
      <pubDate>Fri, 17 Jan 2003 01:02:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884075#M101595</guid>
      <dc:creator>j773303</dc:creator>
      <dc:date>2003-01-17T01:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884076#M101596</link>
      <description>Try this:&lt;BR /&gt;&lt;BR /&gt;# cd /dev/rmt&lt;BR /&gt;# rm -i *&lt;BR /&gt;&lt;BR /&gt;and wait for the file to show up, alternatively please show us the full file listing.&lt;BR /&gt;&lt;BR /&gt;# ls -lsa /dev/rmt</description>
      <pubDate>Fri, 17 Jan 2003 01:04:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884076#M101596</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2003-01-17T01:04:15Z</dc:date>
    </item>
    <item>
      <title>Re: One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884077#M101597</link>
      <description>Be very careful running rm /dev/rmt/* without the -i flag. You almost certainly blew away your tape device nodes. &lt;BR /&gt;&lt;BR /&gt;The first thing that you should do is an ls -b /dev/rmt. The -b option will display all the non-printable characters as octal so that you know what you are dealing with. From there, you can make an intelligent choice for a regular expression to feed the rm command BUT use it in conjunction with -i so that you must answer 'y' before the file is removed.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 17 Jan 2003 01:10:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884077#M101597</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2003-01-17T01:10:16Z</dc:date>
    </item>
    <item>
      <title>Re: One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884078#M101598</link>
      <description>another way would be to use the find with the -exec option&lt;BR /&gt;&lt;BR /&gt;find /dev/rmt -name "*0mo*" -exec rm -i {} \;&lt;BR /&gt;&lt;BR /&gt;DEFINITELY use the -i option anytime a wildcard is used with rm.</description>
      <pubDate>Fri, 17 Jan 2003 01:14:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884078#M101598</guid>
      <dc:creator>Ian Kidd_1</dc:creator>
      <dc:date>2003-01-17T01:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884079#M101599</link>
      <description>Try rmsf, see man page for specific options.  Files in /dev are 'special files' (well, most of them), and rmsf is 'remove special file', which the traditional unix compress/truncate naming convention shrunk to four letters.&lt;BR /&gt;&lt;BR /&gt;As others have noted, take great care using star names and wild cards in conjunction with any commands that delete, in an environment that doesn't have a "recycle bin"...&lt;BR /&gt;&lt;BR /&gt;Regards, --bmr</description>
      <pubDate>Fri, 17 Jan 2003 01:19:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884079#M101599</guid>
      <dc:creator>Brian M Rawlings</dc:creator>
      <dc:date>2003-01-17T01:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884080#M101600</link>
      <description>One other idea, at least for troubleshooting: use mv rather than rm.  If you find the right combination of letters or wildcards to grab this file, changing its name to something simple (that you can then delete at your convenience) may be preferable.&lt;BR /&gt;&lt;BR /&gt;Also, I hope you will post the solution you eventually employ to get rid of this pesky thing, I'm intrigued.&lt;BR /&gt;&lt;BR /&gt;--bmr</description>
      <pubDate>Fri, 17 Jan 2003 01:22:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884080#M101600</guid>
      <dc:creator>Brian M Rawlings</dc:creator>
      <dc:date>2003-01-17T01:22:48Z</dc:date>
    </item>
    <item>
      <title>Re: One strange file can't be removed</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884081#M101601</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;A work around. Create a directory and copy all the files that you dont' want to remove. Once it is done then do a 'rm -rf /dev/rmt/'.&lt;BR /&gt;&lt;BR /&gt;Create a directory /dev/rmt. Run 'insf -e' command and it will create devices files for you.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Fri, 17 Jan 2003 01:59:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/one-strange-file-can-t-be-removed/m-p/2884081#M101601</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2003-01-17T01:59:41Z</dc:date>
    </item>
  </channel>
</rss>

