<?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: Problems with the command rm in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602197#M375984</link>
    <description>Owner, but not root. &lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 17 Mar 2010 07:43:21 GMT</pubDate>
    <dc:creator>Goriik</dc:creator>
    <dc:date>2010-03-17T07:43:21Z</dc:date>
    <item>
      <title>Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602194#M375981</link>
      <description>I'm trying to delete a large number of logs. There is a confirmation of 8583pos_int.out: 640 mode? (y / n) n. How to make the removal occurred without confirmation?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;user@server:~&amp;gt; alias | grep cle&lt;BR /&gt;alias cle='(cd ~/output/log; rm *; close_out all;)'&lt;BR /&gt;alias mqq='while [ 1 ]; do clear; mq; sleep 3; done;'&lt;BR /&gt;&lt;BR /&gt;user@server:~/output/log&amp;gt; rm *&lt;BR /&gt;8583pos_int.out: 640  mode ? (y/n) n</description>
      <pubDate>Wed, 17 Mar 2010 07:10:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602194#M375981</guid>
      <dc:creator>Goriik</dc:creator>
      <dc:date>2010-03-17T07:10:51Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602195#M375982</link>
      <description>Did you tried with rm -f * ?&lt;BR /&gt;&lt;BR /&gt;Horia.</description>
      <pubDate>Wed, 17 Mar 2010 07:28:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602195#M375982</guid>
      <dc:creator>Horia Chirculescu</dc:creator>
      <dc:date>2010-03-17T07:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602196#M375983</link>
      <description>if you sure you have to delete files just run #rm -f&lt;BR /&gt;&lt;BR /&gt;over here I suppose you are not the owner of the file or root??&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Wed, 17 Mar 2010 07:28:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602196#M375983</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-17T07:28:57Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602197#M375984</link>
      <description>Owner, but not root. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 17 Mar 2010 07:43:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602197#M375984</guid>
      <dc:creator>Goriik</dc:creator>
      <dc:date>2010-03-17T07:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602198#M375985</link>
      <description>And what about directory permissions - you need rwx to rm something in it.</description>
      <pubDate>Wed, 17 Mar 2010 07:52:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602198#M375985</guid>
      <dc:creator>Modris Bremze</dc:creator>
      <dc:date>2010-03-17T07:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602199#M375986</link>
      <description>still I would think rm -f should work.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Wed, 17 Mar 2010 08:37:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602199#M375986</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-17T08:37:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602200#M375987</link>
      <description>Just....&lt;BR /&gt;&lt;BR /&gt;rm -f * is probably the most dangerous command in any UNIX, worse than a reboot.&lt;BR /&gt;I have learned not to use * with rm :)&lt;BR /&gt;use it wisely, it really sucks sometimes.&lt;BR /&gt;&lt;BR /&gt;BR,&lt;BR /&gt;Kapil+</description>
      <pubDate>Wed, 17 Mar 2010 08:39:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602200#M375987</guid>
      <dc:creator>Kapil Jha</dc:creator>
      <dc:date>2010-03-17T08:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602201#M375988</link>
      <description>HI&lt;BR /&gt;&lt;BR /&gt;check the permission....&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;&lt;BR /&gt;MC</description>
      <pubDate>Wed, 17 Mar 2010 09:53:52 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602201#M375988</guid>
      <dc:creator>madhuchakkaravarthy</dc:creator>
      <dc:date>2010-03-17T09:53:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problems with the command rm</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602202#M375989</link>
      <description>Suggestion:&lt;BR /&gt;&lt;BR /&gt;Being anal, as any good admin should be about using rm, you're much better off creating an object list that you verify and edit then process through a simple command line that will rm the files.  WAY more safe than just issuing rm at the command line with wild cards.  &lt;BR /&gt;&lt;BR /&gt;For example:&lt;BR /&gt;1. create the list by using ls and sending output to a file such as /tmp/flist1&lt;BR /&gt;&lt;BR /&gt;&amp;gt; ls -1 &amp;gt;/tmp/flist1&lt;BR /&gt;&lt;BR /&gt;2. edit the list to be sure only files you want deleted are in the file&lt;BR /&gt;&lt;BR /&gt;&amp;gt; vi /tmp/flist1&lt;BR /&gt;&lt;BR /&gt;3. run a command to process the list &lt;BR /&gt;&lt;BR /&gt;&amp;gt; cat /tmp/flist1|xargs -i rm -f {}&lt;BR /&gt;&lt;BR /&gt;The above command will rm the object {} which gets sent to the {} by xargs processing each line of the file /tmp/flist1&lt;BR /&gt;&lt;BR /&gt;BEST way, IMHO.  Also, you can then cp the file to /tmp/flist2, chop all but the first 5 lines and run the above as a test to see if it works.&lt;BR /&gt;&lt;BR /&gt;-RCP</description>
      <pubDate>Thu, 18 Mar 2010 16:49:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/problems-with-the-command-rm/m-p/4602202#M375989</guid>
      <dc:creator>RC Park</dc:creator>
      <dc:date>2010-03-18T16:49:54Z</dc:date>
    </item>
  </channel>
</rss>

