<?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: Cannot delete a file in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565435#M741409</link>
    <description>I have had success with the rm -i * command in the past.&lt;BR /&gt;One more trick that I use is&lt;BR /&gt;&lt;BR /&gt;rm .a&lt;ESC&gt;&lt;ESC&gt;&lt;BR /&gt;&lt;BR /&gt;Where &lt;ESC&gt; is the escape key &lt;BR /&gt;Hit the escape key twice and that will auto complete the command and will automatically find the name with hidden/non ascii characters and complete the word.&lt;BR /&gt;&lt;BR /&gt;tanks&lt;BR /&gt;Devesh&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
    <pubDate>Thu, 16 Jun 2005 13:37:01 GMT</pubDate>
    <dc:creator>Devesh Pant_1</dc:creator>
    <dc:date>2005-06-16T13:37:01Z</dc:date>
    <item>
      <title>Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565431#M741405</link>
      <description>I have a directory, with a file in it that I cannot pattern match--the octal characters show this:&lt;BR /&gt;frank:[/users/student2/0006/deleted] # ls -b&lt;BR /&gt;.addressb\033on\215lu             .pine-de'Mg3&lt;BR /&gt;&lt;BR /&gt;but no rm .a* or any rm .* will catch it:&lt;BR /&gt;frank:[/users/lu non-existenteleted] # rm .a*&lt;BR /&gt; You see how it wrote over the current line with the lu? Any ideas? I even tried deleting the inode, and that won't work either:&lt;BR /&gt;frank:[/users/student2/0006/deleted] # find . -inum 49196 -exec rm {} \;&lt;BR /&gt;It is still there afterwards, with no errors or messages. I would really like to clean this up, it is bugging me!&lt;BR /&gt;Thanks for any ideas,&lt;BR /&gt;c*</description>
      <pubDate>Thu, 16 Jun 2005 11:38:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565431#M741405</guid>
      <dc:creator>MTSU_SAN</dc:creator>
      <dc:date>2005-06-16T11:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565432#M741406</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try rm -i * and answer yes only on the file you want to remove.&lt;BR /&gt;&lt;BR /&gt;Enjoy :-)</description>
      <pubDate>Thu, 16 Jun 2005 11:44:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565432#M741406</guid>
      <dc:creator>Pedro Cirne</dc:creator>
      <dc:date>2005-06-16T11:44:25Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565433#M741407</link>
      <description>Have you tried using the GUI version of SAM?  Under Routine tasks selection you can display a list of files, highlight the one you are interested in, and delete it.&lt;BR /&gt;&lt;BR /&gt;Hope this is of some help&lt;BR /&gt;&lt;BR /&gt;Dave</description>
      <pubDate>Thu, 16 Jun 2005 11:46:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565433#M741407</guid>
      <dc:creator>DCE</dc:creator>
      <dc:date>2005-06-16T11:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565434#M741408</link>
      <description>a little bit convoluted way of accomplishing this would be:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /users/student2/0006/deleted&lt;BR /&gt;mkdir /tmp/tempstorage&lt;BR /&gt;cp -Rp * /tmp/tempstorage&lt;BR /&gt;cd .. &lt;BR /&gt;rm -r /users/student2/0006/deleted&lt;BR /&gt;mkdir /users/student2/0006/deleted&lt;BR /&gt;(modify ownership and permissions properly here)&lt;BR /&gt;mv /tmp/tempstorage/* /users/student2/0006/deleted&lt;BR /&gt;&lt;BR /&gt;with the same regex matching logic, files with offending characters will not match * and will not be copied to /tmp/tempstorage, hence when you remove the whole directory, they will be gone. After that you will restore the salvaged files back to the original location.&lt;BR /&gt;&lt;BR /&gt;I am not sure why a* is not matching this file, but obviously, one or more of these offending characters do something like cursor location manipulation, causing you this much headache.&lt;BR /&gt;&lt;BR /&gt;Hope this helps..</description>
      <pubDate>Thu, 16 Jun 2005 12:17:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565434#M741408</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-16T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565435#M741409</link>
      <description>I have had success with the rm -i * command in the past.&lt;BR /&gt;One more trick that I use is&lt;BR /&gt;&lt;BR /&gt;rm .a&lt;ESC&gt;&lt;ESC&gt;&lt;BR /&gt;&lt;BR /&gt;Where &lt;ESC&gt; is the escape key &lt;BR /&gt;Hit the escape key twice and that will auto complete the command and will automatically find the name with hidden/non ascii characters and complete the word.&lt;BR /&gt;&lt;BR /&gt;tanks&lt;BR /&gt;Devesh&lt;/ESC&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
      <pubDate>Thu, 16 Jun 2005 13:37:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565435#M741409</guid>
      <dc:creator>Devesh Pant_1</dc:creator>
      <dc:date>2005-06-16T13:37:01Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565436#M741410</link>
      <description>Jerry,&lt;BR /&gt;&lt;BR /&gt;I tried deleting the file using its inode number and it worked fine. Here's what I did on my system:&lt;BR /&gt;&lt;BR /&gt;1. ls -i ".addressb\033on\215lu .pine-de'Mg3"&lt;BR /&gt;2. find . -inum &lt;INODE number="" from="" step="" 1=""&gt; -exec rm {} \;&lt;BR /&gt;3. repeat step 1 to verify it got deleted&lt;BR /&gt;&lt;BR /&gt;cheers!&lt;/INODE&gt;</description>
      <pubDate>Thu, 16 Jun 2005 13:42:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565436#M741410</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-06-16T13:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565437#M741411</link>
      <description>Thanks for all of your suggestions! Except for the sam one, I had already tried all of them, and they did not work! I thought I knew so much!&lt;BR /&gt;I will try sam, and also emacs (which allows a directory listing inside)--I wish I had thought of that before.&lt;BR /&gt;c*</description>
      <pubDate>Thu, 16 Jun 2005 15:13:03 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565437#M741411</guid>
      <dc:creator>MTSU_SAN</dc:creator>
      <dc:date>2005-06-16T15:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565438#M741412</link>
      <description>Nope, neither sam or emacs could do it either--those octal characters are cursor manipulators, and so interfere with the deletion. Any other suggestions?&lt;BR /&gt;c*</description>
      <pubDate>Thu, 16 Jun 2005 15:23:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565438#M741412</guid>
      <dc:creator>MTSU_SAN</dc:creator>
      <dc:date>2005-06-16T15:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565439#M741413</link>
      <description>Could it be possible the file is on a NFS mount and you don't have permission to delete it?&lt;BR /&gt; &lt;BR /&gt;Try-&lt;BR /&gt;rm .a* &amp;gt;/tmp/msg 2&amp;gt;&amp;amp;1&lt;BR /&gt;strings /tmp/msg&lt;BR /&gt; &lt;BR /&gt;And see if any message you can't see on the screen is being displayed...&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 16 Jun 2005 15:42:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565439#M741413</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-06-16T15:42:20Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565440#M741414</link>
      <description>Thanks, this was a novel idea, but it is just saying:&lt;BR /&gt;frank:[/users/student2/0006/deleted] #  rm .a* &amp;gt; /tmp/msg 2&amp;gt;&amp;amp;1&lt;BR /&gt;frank:[/users/student2/0006/deleted] # more /tmp/msg&lt;BR /&gt;rm: .addressb^[onM-^Mlu non-existent&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;which is what I get on the command line (but it is hard to tell since it is written over).&lt;BR /&gt;c*</description>
      <pubDate>Thu, 16 Jun 2005 15:51:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565440#M741414</guid>
      <dc:creator>MTSU_SAN</dc:creator>
      <dc:date>2005-06-16T15:51:04Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565441#M741415</link>
      <description>just a wild suggestion:&lt;BR /&gt;&lt;BR /&gt;set your term to "unknown" rather than hp or vt100 or whatever else. then try doing cat on /tmp/msg to see what characters are there. &lt;BR /&gt;&lt;BR /&gt;then try constructing the file name using the esc sequences from the command line of your "unknown" terminal using ctrl-V then the ctrl-character sequences and delete it. &lt;BR /&gt;&lt;BR /&gt;Again this is just a wild suggestion and it still at the end, your regex matching should not be dependent on what type of terminal you are using when you run an rm .a* command.</description>
      <pubDate>Thu, 16 Jun 2005 16:30:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565441#M741415</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2005-06-16T16:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565442#M741416</link>
      <description>please post the output of the ll command in the dir where the file exists&lt;BR /&gt;&lt;BR /&gt;thanks</description>
      <pubDate>Thu, 16 Jun 2005 16:31:47 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565442#M741416</guid>
      <dc:creator>Sandman!</dc:creator>
      <dc:date>2005-06-16T16:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565443#M741417</link>
      <description>run your ls with an octal dump to see the characters hidden in there.&lt;BR /&gt;&lt;BR /&gt;ls -1 | od -c &lt;BR /&gt;&lt;BR /&gt;With that you'll get a better idea of what you're dealing with. &lt;BR /&gt;&lt;BR /&gt;But, the Mel's posting where everything else gets moved out, and then your whole directory gets removed should work for you.&lt;BR /&gt;&lt;BR /&gt;Another trick...&lt;BR /&gt;&lt;BR /&gt;rm -i ./* ./.* &lt;BR /&gt;&lt;BR /&gt;or...&lt;BR /&gt; &lt;BR /&gt;cd ..&lt;BR /&gt;rm -i ./deleted/* ./deleted/.* &lt;BR /&gt;&lt;BR /&gt;Then answer yes for the file you want gone.  &lt;BR /&gt;&lt;BR /&gt;This is similiar to one of the previous posting, except that you're prefixing a directory in there.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 16 Jun 2005 16:50:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565443#M741417</guid>
      <dc:creator>TwoProc</dc:creator>
      <dc:date>2005-06-16T16:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565444#M741418</link>
      <description>Don't use the "more" command. Use the "strings" command to display the non-binary data...&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Thu, 16 Jun 2005 17:04:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565444#M741418</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-06-16T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565445#M741419</link>
      <description>Hi Jerry,&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;#mv ".address &lt;ESC&gt;&lt;ESC&gt;" 1234 (hitescape key twice)&lt;BR /&gt;#rm 1234&lt;BR /&gt;&lt;BR /&gt;Hope this works. &lt;BR /&gt;&lt;BR /&gt;Cheers!!!&lt;BR /&gt;eknath&lt;BR /&gt;&lt;/ESC&gt;&lt;/ESC&gt;</description>
      <pubDate>Thu, 16 Jun 2005 20:45:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565445#M741419</guid>
      <dc:creator>Eknath</dc:creator>
      <dc:date>2005-06-16T20:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565446#M741420</link>
      <description>As John Joubert suggest, I'd type:&lt;BR /&gt;&lt;BR /&gt;ls -1 | xd -tx1 -tc&lt;BR /&gt;&lt;BR /&gt;in order to get the characters of that filename.&lt;BR /&gt;&lt;BR /&gt;Please, run that command line and post its output here.</description>
      <pubDate>Fri, 17 Jun 2005 02:45:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565446#M741420</guid>
      <dc:creator>CAS_2</dc:creator>
      <dc:date>2005-06-17T02:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565447#M741421</link>
      <description>You can try as,&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;cd /users/student2/0006/&lt;BR /&gt;mkdir deleted_new&lt;BR /&gt;cp -ri deleted/* deleted_new&lt;BR /&gt;&lt;BR /&gt;Press n for that specific file and move this new as old one.&lt;BR /&gt;&lt;BR /&gt;rm -f ./.address*&lt;BR /&gt;&lt;BR /&gt;hth.</description>
      <pubDate>Fri, 17 Jun 2005 02:51:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565447#M741421</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2005-06-17T02:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565448#M741422</link>
      <description>-rw-r--r--   1 root       sys             33 Jun 16 15:50 /tmp/msg&lt;BR /&gt;frank:[/] # strings /tmp/msg&lt;BR /&gt;rm: .addressb&lt;BR /&gt;lu non-existent&lt;BR /&gt;frank:[/] # cd /users/student2/0006/deleted&lt;BR /&gt;frank:[/userlu not found006/deleted] # ll&lt;BR /&gt;./.pine-de'Mg3 not found&lt;BR /&gt;total 0&lt;BR /&gt;frank:[/userlu not found006/deleted] # ls -l | od -c&lt;BR /&gt;./.pine-de'Mg3 not found&lt;BR /&gt;0000000   t   o   t   a   l       0  \n&lt;BR /&gt;0000010&lt;BR /&gt;frank:[/userlu not found006/deleted] # ls -l | xd -tx1 -tc&lt;BR /&gt;./.pine-de'Mg3 not found&lt;BR /&gt;0000000   74  6f  74  61  6c  20  30   a&lt;BR /&gt;           t   o   t   a   l       0  \n&lt;BR /&gt;0000008&lt;BR /&gt;&lt;BR /&gt;There are answers to all the requests for posts, still nothing works. There is only that one file in the directory, and rm -r of the directory won't work, so moving everything else out is moot. Do these outputs give anyone ideas?&lt;BR /&gt;c*</description>
      <pubDate>Fri, 17 Jun 2005 07:51:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565448#M741422</guid>
      <dc:creator>MTSU_SAN</dc:creator>
      <dc:date>2005-06-17T07:51:40Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565449#M741423</link>
      <description>What about using perl and its wonderful unlink command ? store filename in a variable en unlink it.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Fred</description>
      <pubDate>Fri, 17 Jun 2005 08:29:19 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565449#M741423</guid>
      <dc:creator>Fred Ruffet</dc:creator>
      <dc:date>2005-06-17T08:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot delete a file</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565450#M741424</link>
      <description>I would guess the directory the file is in is corrupted. umount the filesystem the directory is in and run fsck.&lt;BR /&gt; &lt;BR /&gt;-- Rod Hills</description>
      <pubDate>Fri, 17 Jun 2005 09:19:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/cannot-delete-a-file/m-p/3565450#M741424</guid>
      <dc:creator>Rodney Hills</dc:creator>
      <dc:date>2005-06-17T09:19:50Z</dc:date>
    </item>
  </channel>
</rss>

