<?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: Something similar to &amp;quot;du -sh' in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926874#M286771</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;a little modification of Ralf's commandline to get a more linux-like output:&lt;BR /&gt;&lt;BR /&gt;du -skx /opt|awk '{printf("%dM %s\n",$1/2^10,$2)}'&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
    <pubDate>Tue, 16 Jan 2007 08:08:40 GMT</pubDate>
    <dc:creator>Peter Nikitka</dc:creator>
    <dc:date>2007-01-16T08:08:40Z</dc:date>
    <item>
      <title>Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926866#M286763</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;On a linux machine:&lt;BR /&gt;$ du -sh ./&lt;BR /&gt;405M    ./&lt;BR /&gt;&lt;BR /&gt;Above gives disk usage in human readable format in Linux. &lt;BR /&gt;Do we have anything similar in HP-UX ?</description>
      <pubDate>Tue, 16 Jan 2007 06:37:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926866#M286763</guid>
      <dc:creator>amit mehta_2</dc:creator>
      <dc:date>2007-01-16T06:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926867#M286764</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;# du -ks &lt;BR /&gt; Calculates the block count in 1024-byte (kilobytes) units rather than the default 512-byte units.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Robert-Jan</description>
      <pubDate>Tue, 16 Jan 2007 06:46:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926867#M286764</guid>
      <dc:creator>Robert-Jan Goossens</dc:creator>
      <dc:date>2007-01-16T06:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926868#M286765</link>
      <description>Or use bdf.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Tue, 16 Jan 2007 06:50:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926868#M286765</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2007-01-16T06:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926869#M286766</link>
      <description>&lt;!--!*#--&gt;I am afraid,&lt;BR /&gt;HP-UX isn't "human readable",&lt;BR /&gt;at least in this respect.&lt;BR /&gt;You would have to increase readbility by yourself, like e.g.&lt;BR /&gt;&lt;BR /&gt;$ du -skx /opt|awk '{print$1/2^10}'&lt;BR /&gt;3094.95&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jan 2007 06:51:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926869#M286766</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-01-16T06:51:35Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926870#M286767</link>
      <description>Or you can use the attached script. It will summarize each directory in Gb, Mb, Kb, etc. Adjust the code as needed.</description>
      <pubDate>Tue, 16 Jan 2007 07:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926870#M286767</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2007-01-16T07:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926871#M286768</link>
      <description>Hi Ralph,&lt;BR /&gt;&lt;BR /&gt;i tried it on my linux machine.&lt;BR /&gt;&lt;BR /&gt;$ du -sh ./&lt;BR /&gt;405M    ./ &amp;lt;--------&lt;BR /&gt;$ du -skx ./|awk '{print$1/2 ^10}'&lt;BR /&gt;404.32 &amp;lt;---------&lt;BR /&gt;&lt;BR /&gt;~amit</description>
      <pubDate>Tue, 16 Jan 2007 07:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926871#M286768</guid>
      <dc:creator>amit mehta_2</dc:creator>
      <dc:date>2007-01-16T07:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926872#M286769</link>
      <description>also works is:&lt;BR /&gt;&lt;BR /&gt;find -type f | du -sk&lt;BR /&gt;or&lt;BR /&gt;find -type f -prune | du -sk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jan 2007 07:22:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926872#M286769</guid>
      <dc:creator>Frank de Vries</dc:creator>
      <dc:date>2007-01-16T07:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926873#M286770</link>
      <description>&lt;!--!*#--&gt;amit, &lt;BR /&gt;&lt;BR /&gt;probably some rounding or kibi vs. kilo issue?&lt;BR /&gt; &lt;BR /&gt;I went on one of our RHFC3 linux boxes.&lt;BR /&gt;Oops, have you seen this?&lt;BR /&gt;&lt;BR /&gt;# du -sH /usr&lt;BR /&gt;du: WARNING: use --si, not -H; the meaning of the -H option will soon&lt;BR /&gt;change to be the same as that of --dereference-args (-D)&lt;BR /&gt;824M    /usr&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If I look up the Warning about deprecated -H switch in the manpage of *my* version of du,&lt;BR /&gt;this indeed seems to relate to the notoriuos kibi vs. kilo issue.&lt;BR /&gt;&lt;BR /&gt;excerpt from man du:&lt;BR /&gt;&lt;BR /&gt;       -H     like  --si,  but  also  evokes a warning; will soon change to be&lt;BR /&gt;              equivalent to --dereference-args (-D)&lt;BR /&gt;&lt;BR /&gt;       --si   like -h, but use powers of 1000 not 1024&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;Well, I guess for "humans" it is considered too confusing to calculate in powers of base 2 rather than 10.&lt;BR /&gt;On the other hand I suspect this has been inculcated by HW vendors who can better bost with higher capacity figures of their storage devices.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Jan 2007 08:03:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926873#M286770</guid>
      <dc:creator>Ralph Grothe</dc:creator>
      <dc:date>2007-01-16T08:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Something similar to "du -sh'</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926874#M286771</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;a little modification of Ralf's commandline to get a more linux-like output:&lt;BR /&gt;&lt;BR /&gt;du -skx /opt|awk '{printf("%dM %s\n",$1/2^10,$2)}'&lt;BR /&gt;&lt;BR /&gt;mfG Peter</description>
      <pubDate>Tue, 16 Jan 2007 08:08:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/something-similar-to-quot-du-sh/m-p/3926874#M286771</guid>
      <dc:creator>Peter Nikitka</dc:creator>
      <dc:date>2007-01-16T08:08:40Z</dc:date>
    </item>
  </channel>
</rss>

