<?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 how can i find the file that it increased most quickly? in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403776#M201367</link>
    <description>thanks</description>
    <pubDate>Tue, 19 Oct 2004 20:27:12 GMT</pubDate>
    <dc:creator>常有慈悲心</dc:creator>
    <dc:date>2004-10-19T20:27:12Z</dc:date>
    <item>
      <title>how can i find the file that it increased most quickly?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403776#M201367</link>
      <description>thanks</description>
      <pubDate>Tue, 19 Oct 2004 20:27:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403776#M201367</guid>
      <dc:creator>常有慈悲心</dc:creator>
      <dc:date>2004-10-19T20:27:12Z</dc:date>
    </item>
    <item>
      <title>Re: how can i find the file that it increased most quickly?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403777#M201368</link>
      <description>To do this, you have to take snaphots, or collect some kind of data over time.&lt;BR /&gt;&lt;BR /&gt;Here is a simple way.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;filename=$(date)&lt;BR /&gt;cd /&lt;BR /&gt;du -k | sort -rn &amp;gt; /tmp/$filename&lt;BR /&gt;&lt;BR /&gt;Have cron run it once a day.&lt;BR /&gt;&lt;BR /&gt;Then you can compare the data between the two files and figure out which one had the most growth.  &lt;BR /&gt;&lt;BR /&gt;I don't have time to script that right now, but if you look at the output you'll get the idea.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Tue, 19 Oct 2004 20:59:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403777#M201368</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-10-19T20:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: how can i find the file that it increased most quickly?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403778#M201369</link>
      <description>&lt;BR /&gt;You might want to reduce the number of files to monitor by setting a lower threshold of say 2.5MB, suggesting that any growth below that level is not too interesting.&lt;BR /&gt;&lt;BR /&gt;So that would mean something like (untested)&lt;BR /&gt;&lt;BR /&gt;filename=$(date)&lt;BR /&gt;find / -size +5000 -exec du -k {} \; | sort -k 2 &amp;gt; /xxx/$filename.xxx&lt;BR /&gt;:&lt;BR /&gt;diff...&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 19 Oct 2004 21:35:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403778#M201369</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-10-19T21:35:46Z</dc:date>
    </item>
    <item>
      <title>Re: how can i find the file that it increased most quickly?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403779#M201370</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would rely on the size and a recent time stamp of it. For ex., if you are seeing it increased in the last 5 minutes, then find all the files that are above 10 MB but modified within last 5 mins. To do that, touch a file with a time stamp less than five minutes ago and then use it as a reference with -newer option.&lt;BR /&gt;&lt;BR /&gt;touch 1019103004 /tmp/stamp&lt;BR /&gt;find /directory -newer /tmp/stamp -size 10000000c&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Tue, 19 Oct 2004 22:35:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403779#M201370</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2004-10-19T22:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: how can i find the file that it increased most quickly?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403780#M201371</link>
      <description>Yes, excellent plan to not only take the size into account, but also the modification time. If it is a small file, it is not intesting. If it is a large files, but has not changed for days/weeks (like the Oracle executable), then it is not interesting either. The whole point being to weed out the bulk of the data and focus on real candidates with minimal effort.&lt;BR /&gt;&lt;BR /&gt;Hein.</description>
      <pubDate>Tue, 19 Oct 2004 23:34:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403780#M201371</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2004-10-19T23:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: how can i find the file that it increased most quickly?</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403781#M201372</link>
      <description>We can use ls with -s option to get file size there. IF you want to collect only files then,&lt;BR /&gt;&lt;BR /&gt; find / -type f -exec ls -s {} \; &amp;gt; /tmp/sizereport_$(date +'%b_%e_%H')&lt;BR /&gt;&lt;BR /&gt;do cron this, so that you will get reports based on the cron execution time.&lt;BR /&gt;&lt;BR /&gt;It will give format of file informations as,&lt;BR /&gt;&lt;BR /&gt; size filename.&lt;BR /&gt;&lt;BR /&gt; Log file represents /tmp/sizereport_Month_date_hour&lt;BR /&gt;&lt;BR /&gt;HTH.</description>
      <pubDate>Wed, 20 Oct 2004 01:01:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/how-can-i-find-the-file-that-it-increased-most-quickly/m-p/3403781#M201372</guid>
      <dc:creator>Muthukumar_5</dc:creator>
      <dc:date>2004-10-20T01:01:18Z</dc:date>
    </item>
  </channel>
</rss>

