<?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: du command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728933#M789166</link>
    <description>Tkx Jeff,&lt;BR /&gt;&lt;BR /&gt;I like this better. How would you sort the file so that it is done based on the path rather than the size?&lt;BR /&gt;&lt;BR /&gt;Conrad</description>
    <pubDate>Fri, 10 Feb 2006 16:43:58 GMT</pubDate>
    <dc:creator>Conrad J Wyrzykowski</dc:creator>
    <dc:date>2006-02-10T16:43:58Z</dc:date>
    <item>
      <title>du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728927#M789160</link>
      <description>Greetings,&lt;BR /&gt;&lt;BR /&gt;I'm trying to retreive files and there sizes using du -a -k which works to well. It goes down the whole folder tree to the smallest file. Is there away to have it stop at the last folder and report the size at that point?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Conrad</description>
      <pubDate>Fri, 10 Feb 2006 10:07:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728927#M789160</guid>
      <dc:creator>Conrad J Wyrzykowski</dc:creator>
      <dc:date>2006-02-10T10:07:38Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728928#M789161</link>
      <description>Have you tried the -x option?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Fri, 10 Feb 2006 10:27:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728928#M789161</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2006-02-10T10:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728929#M789162</link>
      <description>Hi&lt;BR /&gt;&lt;BR /&gt;Try this&lt;BR /&gt;&lt;BR /&gt;# du -sk * | sort -n  Or&lt;BR /&gt;&lt;BR /&gt;# du -sk * | sort -rn&lt;BR /&gt;&lt;BR /&gt;Rgds / James&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Feb 2006 10:27:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728929#M789162</guid>
      <dc:creator>James George_1</dc:creator>
      <dc:date>2006-02-10T10:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728930#M789163</link>
      <description>Conrad,&lt;BR /&gt;du -ks * |sort -n &lt;BR /&gt;would be solution for you...&lt;BR /&gt;Good Luck,</description>
      <pubDate>Fri, 10 Feb 2006 15:35:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728930#M789163</guid>
      <dc:creator>Cem Tugrul</dc:creator>
      <dc:date>2006-02-10T15:35:41Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728931#M789164</link>
      <description>Great,&lt;BR /&gt;&lt;BR /&gt;Pete's -x option is the best so far. I now need to find a way to determine if the very first level returned is a directory then to return the files inside it. I may need to stick with the -a option and then take the file into ACCESS or something and force it to group the files that I need. More thought required.&lt;BR /&gt;&lt;BR /&gt;Thanks.</description>
      <pubDate>Fri, 10 Feb 2006 16:16:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728931#M789164</guid>
      <dc:creator>Conrad J Wyrzykowski</dc:creator>
      <dc:date>2006-02-10T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728932#M789165</link>
      <description>Hi Conrad,&lt;BR /&gt;&lt;BR /&gt;This is what I use:&lt;BR /&gt;&lt;BR /&gt;du -akx | sort -rn | more&lt;BR /&gt;&lt;BR /&gt;This puts the grand total right up top.&lt;BR /&gt;Plus shows you the "hogs" up there as well.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 10 Feb 2006 16:22:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728932#M789165</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-02-10T16:22:06Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728933#M789166</link>
      <description>Tkx Jeff,&lt;BR /&gt;&lt;BR /&gt;I like this better. How would you sort the file so that it is done based on the path rather than the size?&lt;BR /&gt;&lt;BR /&gt;Conrad</description>
      <pubDate>Fri, 10 Feb 2006 16:43:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728933#M789166</guid>
      <dc:creator>Conrad J Wyrzykowski</dc:creator>
      <dc:date>2006-02-10T16:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728934#M789167</link>
      <description>Hi Conrad:&lt;BR /&gt;&lt;BR /&gt;To use Jeff's suggestion but sort the output using the filename (the second field), simply do:&lt;BR /&gt;&lt;BR /&gt;# du -akx | sort -k2 | more&lt;BR /&gt;&lt;BR /&gt;See the 'sort' manpages for more information.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Feb 2006 16:53:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728934#M789167</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2006-02-10T16:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728935#M789168</link>
      <description>Well...you'd have to sort differently- here's a sort EX:&lt;BR /&gt;&lt;BR /&gt;du -akx | sort -rn | sort -k 2,2 | more&lt;BR /&gt;&lt;BR /&gt;This will sort second field - i.e. path &amp;amp; THEN the size within.&lt;BR /&gt;Flip those around &amp;amp; you'll get size then path.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Jeff</description>
      <pubDate>Fri, 10 Feb 2006 16:57:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728935#M789168</guid>
      <dc:creator>Jeff Schussele</dc:creator>
      <dc:date>2006-02-10T16:57:40Z</dc:date>
    </item>
    <item>
      <title>Re: du command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728936#M789169</link>
      <description>Thanks all, I went with Jeff's script and the rest will have to be done manually.</description>
      <pubDate>Mon, 13 Feb 2006 12:31:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/du-command/m-p/3728936#M789169</guid>
      <dc:creator>Conrad J Wyrzykowski</dc:creator>
      <dc:date>2006-02-13T12:31:40Z</dc:date>
    </item>
  </channel>
</rss>

