<?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 Disk Usage in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689674#M55124</link>
    <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;What is is the best way to determine how much disk space is used (in kb or mb, not blocks) in a filesystem? I have been moving files around over the weekend and I need to make sure they will all fit on their DLT tapes.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Christian Briddon</description>
    <pubDate>Mon, 25 Mar 2002 11:24:09 GMT</pubDate>
    <dc:creator>Christian Briddon</dc:creator>
    <dc:date>2002-03-25T11:24:09Z</dc:date>
    <item>
      <title>Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689674#M55124</link>
      <description>Hi there,&lt;BR /&gt;&lt;BR /&gt;What is is the best way to determine how much disk space is used (in kb or mb, not blocks) in a filesystem? I have been moving files around over the weekend and I need to make sure they will all fit on their DLT tapes.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;&lt;BR /&gt;Christian Briddon</description>
      <pubDate>Mon, 25 Mar 2002 11:24:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689674#M55124</guid>
      <dc:creator>Christian Briddon</dc:creator>
      <dc:date>2002-03-25T11:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689675#M55125</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use bdf or df -k to get a file system usage overview. Alternatively you can use du -k on directories, files etc.&lt;BR /&gt;&lt;BR /&gt;See man pages for more info.&lt;BR /&gt;&lt;BR /&gt;HtH,&lt;BR /&gt;&lt;BR /&gt;Mark</description>
      <pubDate>Mon, 25 Mar 2002 11:30:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689675#M55125</guid>
      <dc:creator>Mark van Hassel</dc:creator>
      <dc:date>2002-03-25T11:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689676#M55126</link>
      <description>Use du -sk&lt;BR /&gt;&lt;BR /&gt;This gives Disk Usage in kb. If you want more detailed information for the filesystem you can omit the 's' flag.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;&lt;BR /&gt;John</description>
      <pubDate>Mon, 25 Mar 2002 11:32:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689676#M55126</guid>
      <dc:creator>John Strang</dc:creator>
      <dc:date>2002-03-25T11:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689677#M55127</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You can use bdf and then the result are in bytes.&lt;BR /&gt;&lt;BR /&gt;If you use du command the result are in 512 bytes blocks.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Justo.</description>
      <pubDate>Mon, 25 Mar 2002 11:34:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689677#M55127</guid>
      <dc:creator>Justo Exposito</dc:creator>
      <dc:date>2002-03-25T11:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689678#M55128</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You may use the command :&lt;BR /&gt;&lt;BR /&gt;# df -k&lt;BR /&gt;&lt;BR /&gt;for displaying all used and free spaces on file-systems in Kilo-Bytes.&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;# df -k &lt;DIRECTORYNAME&gt;&lt;BR /&gt;&lt;BR /&gt;for displaying only a specific directory used and free spaces on a file-system in Kilo-Bytes.&lt;BR /&gt;&lt;BR /&gt;Then calculate the total amount to check if it stand on DLTs.&lt;BR /&gt;&lt;BR /&gt;Magdi&lt;BR /&gt;&lt;/DIRECTORYNAME&gt;</description>
      <pubDate>Mon, 25 Mar 2002 12:14:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689678#M55128</guid>
      <dc:creator>Magdi KAMAL</dc:creator>
      <dc:date>2002-03-25T12:14:11Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689679#M55129</link>
      <description>hi,&lt;BR /&gt;&lt;BR /&gt;   Clean way is , put this in a  script file, say neat-bdf:&lt;BR /&gt;****&lt;BR /&gt;/bin/bdf "$@" 2&amp;gt;&amp;amp;1 | awk '   { if(NF == 1) { getline n; sub("^[ ]*", " ", n); print $0" "n; next } }&lt;BR /&gt;{ print }'&lt;BR /&gt;****&lt;BR /&gt;&lt;BR /&gt;and execute it:&lt;BR /&gt;&lt;BR /&gt;#neat-bdf &amp;gt;bdf.out&lt;BR /&gt;&lt;BR /&gt;that will give the sizes of each filesystem in a single line in kbs&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;HTH&lt;BR /&gt;raj</description>
      <pubDate>Mon, 25 Mar 2002 12:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689679#M55129</guid>
      <dc:creator>Roger Baptiste</dc:creator>
      <dc:date>2002-03-25T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689680#M55130</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;if you like to use du or bdf, i would prefer to use du -sk &lt;DIR&gt; rather then&lt;BR /&gt;bdf -kl &lt;DIR&gt;. Two reasons:&lt;BR /&gt;1. If you backup only subdirs of a filesystem, bdf -kl will not match at all because it only shows complete filesystems.&lt;BR /&gt;2. bdf -kl does not count the size a sparse file will use on tape.&lt;BR /&gt;&lt;BR /&gt;But even du does not count real bytes, because it is block-aligned. If you need the exact size you can use ll or find and ll to add them up.&lt;BR /&gt;&lt;BR /&gt;Heiner&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/DIR&gt;&lt;/DIR&gt;</description>
      <pubDate>Mon, 25 Mar 2002 12:40:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689680#M55130</guid>
      <dc:creator>Heiner E. Lennackers</dc:creator>
      <dc:date>2002-03-25T12:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Disk Usage</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689681#M55131</link>
      <description>bdf will tell you the kilobyte usage of a mounted filesystem.&lt;BR /&gt;If you only want a certain tree of it you can use 'du -k /dir' to get Kb.&lt;BR /&gt;Here is a small script I have written to better display larger figures (Mb, Gb):&lt;BR /&gt;&lt;BR /&gt;du_it()&lt;BR /&gt;{&lt;BR /&gt;bytes=`du -s | cut -f1 -d"      "`&lt;BR /&gt;&lt;BR /&gt;if [ $bytes -le 999999 ]&lt;BR /&gt;then&lt;BR /&gt;        bytes=`expr $bytes \* 512`&lt;BR /&gt;        kbytes=`expr $bytes \/ 1000`&lt;BR /&gt;else&lt;BR /&gt;        kbytes=`expr $bytes \/ 2`&lt;BR /&gt;fi&lt;BR /&gt;&lt;BR /&gt;if [ $kbytes -gt 999 ]&lt;BR /&gt;then&lt;BR /&gt;        mbytes=`expr $kbytes \/ 1000`&lt;BR /&gt;        xbytes=`expr $mbytes \* 1000`&lt;BR /&gt;        kbytes=`expr $kbytes - $xbytes`&lt;BR /&gt;        if [ $kbytes -le 10 ]&lt;BR /&gt;        then&lt;BR /&gt;                kbytes="00$kbytes"&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        if [ $kbytes -le 100 ]&lt;BR /&gt;        then&lt;BR /&gt;                kbytes="0$kbytes"&lt;BR /&gt;        fi&lt;BR /&gt;&lt;BR /&gt;        if [ $mbytes -gt 999 ]&lt;BR /&gt;        then&lt;BR /&gt;                gbytes=`expr $mbytes \/ 1000`&lt;BR /&gt;                xbytes=`expr $gbytes \* 1000`&lt;BR /&gt;                mbytes=`expr $mbytes - $xbytes`&lt;BR /&gt;                if [ $mbytes -le 10 ]&lt;BR /&gt;                then&lt;BR /&gt;                        mbytes="00$mbytes"&lt;BR /&gt;                fi&lt;BR /&gt;&lt;BR /&gt;                if [ $mbytes -le 100 ]&lt;BR /&gt;                then&lt;BR /&gt;                        mbytes="0$mbytes"&lt;BR /&gt;                fi&lt;BR /&gt;                echo "In `pwd`\t you have used $gbytes,$mbytes Gbytes."&lt;BR /&gt;&lt;BR /&gt;        else&lt;BR /&gt;&lt;BR /&gt;                echo "In `pwd`\t you have used $mbytes,$kbytes Mbytes."&lt;BR /&gt;        fi&lt;BR /&gt;else&lt;BR /&gt;        echo "In `pwd`\t you have used $kbytes Kbytes."&lt;BR /&gt;fi&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;if [ $# -gt 0 ]&lt;BR /&gt;then&lt;BR /&gt;        startdir=`pwd`&lt;BR /&gt;        for dirs in $*&lt;BR /&gt;        do&lt;BR /&gt;                if [ -d "$dirs" ]&lt;BR /&gt;                then&lt;BR /&gt;                        cd $dirs&lt;BR /&gt;                        du_it&lt;BR /&gt;                fi&lt;BR /&gt;                cd $startdir&lt;BR /&gt;        done&lt;BR /&gt;else&lt;BR /&gt;        du_it&lt;BR /&gt;fi     &lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Trond</description>
      <pubDate>Mon, 25 Mar 2002 12:57:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/disk-usage/m-p/2689681#M55131</guid>
      <dc:creator>Trond Haugen</dc:creator>
      <dc:date>2002-03-25T12:57:13Z</dc:date>
    </item>
  </channel>
</rss>

