<?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: rm command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705857#M59264</link>
    <description>One other option..  just one word of caution..   be sure to be where you are in the filesystem.. (as always, when using root)...&lt;BR /&gt;&lt;BR /&gt;root@tm4xm1a&amp;gt; ll | wc&lt;BR /&gt;6160 55433 548164&lt;BR /&gt;root@tm4xm1a&amp;gt; pwd       &lt;BR /&gt;/var/tmos/logs/tap/eadir/fs/ANTKPN1A&lt;BR /&gt;root@tm4xm1a&amp;gt; date;find . -exec rm -f {} \; ; date&lt;BR /&gt;Thu Apr 18 13:49:02 METDST 2002&lt;BR /&gt;rm: cannot remove .. or .&lt;BR /&gt;Thu Apr 18 13:50:08 METDST 2002&lt;BR /&gt;root@tm4xm1a&amp;gt; ll | wc&lt;BR /&gt;1 2 8&lt;BR /&gt;root@tm4xm1a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;You might want to leave out the date commands... these was just there to see how long it would take to erase the 6160 files present.</description>
    <pubDate>Thu, 18 Apr 2002 10:51:39 GMT</pubDate>
    <dc:creator>Nico van Royen</dc:creator>
    <dc:date>2002-04-18T10:51:39Z</dc:date>
    <item>
      <title>rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705848#M59255</link>
      <description>dear all..i have my /tmp file system which has plenty of small files.so while rebooting the cleanup of /tmp doesnt happen.when i manually give rm * , it give parameter is too long.how do i delete the files in /tmp.now i have to manually delete a set of matching files using *..like abc*.* and so on.somewhere i found thati have to set mode=clean.even this didnt workout..any experience on this ...thanks in advance to all&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 03:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705848#M59255</guid>
      <dc:creator>viks</dc:creator>
      <dc:date>2002-04-18T03:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705849#M59256</link>
      <description>see man xargs.&lt;BR /&gt;There are some examples given there.&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 03:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705849#M59256</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-18T03:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705850#M59257</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Your problem stems from only being able &lt;BR /&gt;to remove 256 files in one go.&lt;BR /&gt;&lt;BR /&gt;My workaround, to remove files more than &lt;BR /&gt;three days old:&lt;BR /&gt;&lt;BR /&gt;# find /tmp -mtime +3 -print | xargs rm&lt;BR /&gt;&lt;BR /&gt;There is a kernel limit for this, I'll try&lt;BR /&gt;to find what you can do to fix this problem.&lt;BR /&gt;&lt;BR /&gt;Michael</description>
      <pubDate>Thu, 18 Apr 2002 03:50:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705850#M59257</guid>
      <dc:creator>Michael Tully</dc:creator>
      <dc:date>2002-04-18T03:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705851#M59258</link>
      <description>Hi again,&lt;BR /&gt;Here's the syntax you need:&lt;BR /&gt;ls | xargs -p -l | xargs rm -i&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;&lt;BR /&gt;Just be sure of what you want to delete before you do this!</description>
      <pubDate>Thu, 18 Apr 2002 03:55:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705851#M59258</guid>
      <dc:creator>Deepak Extross</dc:creator>
      <dc:date>2002-04-18T03:55:07Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705852#M59259</link>
      <description>Hi,&lt;BR /&gt;Well, you can make this very complicated, but the following script is the easiest form :&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;for vFile in $(ls *abc*)&lt;BR /&gt;do&lt;BR /&gt; rm -i $vFile&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Save the script, chmod 775 script, cd to /tmp&lt;BR /&gt;and execute the script.&lt;BR /&gt;Replace the "ls *abc*" with the command you want. If you're sure it works, remove the "-i" option from the rm command.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Tom Geudens</description>
      <pubDate>Thu, 18 Apr 2002 03:55:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705852#M59259</guid>
      <dc:creator>Tom Geudens</dc:creator>
      <dc:date>2002-04-18T03:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705853#M59260</link>
      <description>Change the kernel parameter "large_ncargs_enabled" to 1 (ie: enable it). That will increase your limit. You can use SAM to change it or command line method .. as such ..&lt;BR /&gt;&lt;BR /&gt;# cd /stand/build&lt;BR /&gt;&lt;BR /&gt;# /usr/lbin/sysadm/system_prep -s system   &lt;BR /&gt;==&amp;gt; creates an editable kernel file&lt;BR /&gt;                                               # vi system&lt;BR /&gt;==&amp;gt; add this line ..&lt;BR /&gt;large_ncargs_enabled 1&lt;BR /&gt;# /usr/sbin/mk_kernel -s ./system   &lt;BR /&gt;==&amp;gt; creates the test kernel "vmunix_test"&lt;BR /&gt;                                          # mv /stand/system /stand/system.prev&lt;BR /&gt;# mv /stand/vmunix /stand/vmunix.prev&lt;BR /&gt;# mv /stand/build/system /stand/system&lt;BR /&gt;# mv /stand/build/vmunix_test /stand/vmunix&lt;BR /&gt;# shutdown -ry 0&lt;BR /&gt;</description>
      <pubDate>Thu, 18 Apr 2002 03:55:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705853#M59260</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-04-18T03:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705854#M59261</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# cd /tmp/test&lt;BR /&gt;# for i in `ls`;do rm -f $i;done&lt;BR /&gt;&lt;BR /&gt;Tested it works where rm * failed.&lt;BR /&gt;&lt;BR /&gt;Hope this helps. Regards.&lt;BR /&gt;&lt;BR /&gt;Steven Sim Kok Leong</description>
      <pubDate>Thu, 18 Apr 2002 04:11:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705854#M59261</guid>
      <dc:creator>Steven Sim Kok Leong</dc:creator>
      <dc:date>2002-04-18T04:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705855#M59262</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Try this,&lt;BR /&gt;&lt;BR /&gt;for i in ls&lt;BR /&gt;do&lt;BR /&gt;rm $i&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Very simple...&lt;BR /&gt;&lt;BR /&gt;Hope this help,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Thu, 18 Apr 2002 06:49:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705855#M59262</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-04-18T06:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705856#M59263</link>
      <description>If you want to remove all files from /tmp....&lt;BR /&gt;&lt;BR /&gt;Why not use:&lt;BR /&gt;&lt;BR /&gt;umount /tmp&lt;BR /&gt;newfs /dev/vg00/rlvolxxx&lt;BR /&gt;mount /tmp&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;faster, cleaner, and ... excessive?</description>
      <pubDate>Thu, 18 Apr 2002 10:32:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705856#M59263</guid>
      <dc:creator>Carlos Fernandez Riera</dc:creator>
      <dc:date>2002-04-18T10:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: rm command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705857#M59264</link>
      <description>One other option..  just one word of caution..   be sure to be where you are in the filesystem.. (as always, when using root)...&lt;BR /&gt;&lt;BR /&gt;root@tm4xm1a&amp;gt; ll | wc&lt;BR /&gt;6160 55433 548164&lt;BR /&gt;root@tm4xm1a&amp;gt; pwd       &lt;BR /&gt;/var/tmos/logs/tap/eadir/fs/ANTKPN1A&lt;BR /&gt;root@tm4xm1a&amp;gt; date;find . -exec rm -f {} \; ; date&lt;BR /&gt;Thu Apr 18 13:49:02 METDST 2002&lt;BR /&gt;rm: cannot remove .. or .&lt;BR /&gt;Thu Apr 18 13:50:08 METDST 2002&lt;BR /&gt;root@tm4xm1a&amp;gt; ll | wc&lt;BR /&gt;1 2 8&lt;BR /&gt;root@tm4xm1a&amp;gt;&lt;BR /&gt;&lt;BR /&gt;You might want to leave out the date commands... these was just there to see how long it would take to erase the 6160 files present.</description>
      <pubDate>Thu, 18 Apr 2002 10:51:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/rm-command/m-p/2705857#M59264</guid>
      <dc:creator>Nico van Royen</dc:creator>
      <dc:date>2002-04-18T10:51:39Z</dc:date>
    </item>
  </channel>
</rss>

