<?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: File size percentage with respect to the directory. in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550898#M876473</link>
    <description>du -skx /u01/export | sort -nrk1 | more&lt;BR /&gt;&lt;BR /&gt; You will get output in Kbytes followed by file name.&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
    <pubDate>Tue, 10 Jul 2001 18:40:24 GMT</pubDate>
    <dc:creator>Satish Y</dc:creator>
    <dc:date>2001-07-10T18:40:24Z</dc:date>
    <item>
      <title>File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550895#M876470</link>
      <description>Like the bdf command, I would like to find out the percentage of the files in the directory with respect to the size of the directory which contains them.&lt;BR /&gt;&lt;BR /&gt;For example I have a /u01/export directory which is about 4GB used (we will take it as 100% just to compare with each file) and it contains about 20 files in it. Now I want to know in terms of percentages which file is having the maximum used percentage.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;Gulam.</description>
      <pubDate>Tue, 10 Jul 2001 18:18:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550895#M876470</guid>
      <dc:creator>Gulam Mohiuddin</dc:creator>
      <dc:date>2001-07-10T18:18:42Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550896#M876471</link>
      <description>Gulam,&lt;BR /&gt;&lt;BR /&gt;This may not get you where you want to be, but perhaps you can use it as the heart of a script to produce the percentages you seek.&lt;BR /&gt;&lt;BR /&gt;Let's say I want to see what is soaking up /var.  Here's the command I'd use:&lt;BR /&gt;&lt;BR /&gt;du -kx /var | sort rn | more&lt;BR /&gt;&lt;BR /&gt;This will give me directory usage of /var (and below) in kbytes sorted largest to smallest.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Jim</description>
      <pubDate>Tue, 10 Jul 2001 18:33:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550896#M876471</guid>
      <dc:creator>Jim Turner</dc:creator>
      <dc:date>2001-07-10T18:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550897#M876472</link>
      <description>Hi Gulam:&lt;BR /&gt;&lt;BR /&gt;How about this for a start (after which you could embellish with 'awk'):&lt;BR /&gt;&lt;BR /&gt;# du -x /usr |sort -rk1n&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Tue, 10 Jul 2001 18:36:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550897#M876472</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2001-07-10T18:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550898#M876473</link>
      <description>du -skx /u01/export | sort -nrk1 | more&lt;BR /&gt;&lt;BR /&gt; You will get output in Kbytes followed by file name.&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;Satish.</description>
      <pubDate>Tue, 10 Jul 2001 18:40:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550898#M876473</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-07-10T18:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550899#M876474</link>
      <description>sorry, ignore -s option....&lt;BR /&gt;&lt;BR /&gt;du -kx /u01/export | sort -nrk1 | more&lt;BR /&gt;&lt;BR /&gt;Cheers...&lt;BR /&gt;satish.</description>
      <pubDate>Tue, 10 Jul 2001 18:41:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550899#M876474</guid>
      <dc:creator>Satish Y</dc:creator>
      <dc:date>2001-07-10T18:41:45Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550900#M876475</link>
      <description>Hi Gulam,&lt;BR /&gt;&lt;BR /&gt;I whipped this up in about 3 minutes and it should be very close. You simply do dirpct.sh file1 file2 and it displays the filenamem, size, and pct used with respect to the current directory.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Tue, 10 Jul 2001 18:56:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550900#M876475</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-10T18:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550901#M876476</link>
      <description>Hi Gulam,&lt;BR /&gt;&lt;BR /&gt;I whipped this up in about 3 minutes and it should be very close. You simply do dirpct.sh file1 file2 and it displays the filenamem, size, and pct used with respect to the current directory.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;.. oops, here's the attachment.&lt;BR /&gt;&lt;BR /&gt;Regards, Clay</description>
      <pubDate>Tue, 10 Jul 2001 18:56:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550901#M876476</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2001-07-10T18:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: File size percentage with respect to the directory.</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550902#M876477</link>
      <description>Gulam,&lt;BR /&gt;&lt;BR /&gt;The sort args in my previous reply should of course be prefixed with a "-" as in&lt;BR /&gt;&lt;BR /&gt;du -kx /var | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;Sorry for any confusion (and thanks for the "pro" hat!).&lt;BR /&gt;&lt;BR /&gt;[no points on this one, please]</description>
      <pubDate>Tue, 10 Jul 2001 21:06:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/file-size-percentage-with-respect-to-the-directory/m-p/2550902#M876477</guid>
      <dc:creator>Jim Turner</dc:creator>
      <dc:date>2001-07-10T21:06:43Z</dc:date>
    </item>
  </channel>
</rss>

