<?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: difference between df &amp;amp; bdf commands in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174680#M321663</link>
    <description>Irshad,&lt;BR /&gt;&lt;BR /&gt;The subject asks about "df &amp;amp; bdf".&lt;BR /&gt;The topic text asks about "bdf and du".&lt;BR /&gt;&lt;BR /&gt;I guess that's the one you really want to understand. Well, that question has been asked and answerred many, many times before.&lt;BR /&gt;&lt;BR /&gt;Most likely cause:&lt;BR /&gt;- files which are deleted, but still in open.&lt;BR /&gt;Second potential cause:&lt;BR /&gt;- sparse files &lt;BR /&gt;&lt;BR /&gt;Oracle TEMP files can represent both.&lt;BR /&gt;&lt;BR /&gt;Please google: hpux du bdf&lt;BR /&gt;Toss in a 'sparse' for intersting answers.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Sun, 06 Apr 2008 19:28:24 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2008-04-06T19:28:24Z</dc:date>
    <item>
      <title>difference between df &amp; bdf commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174677#M321660</link>
      <description>why system shows diffrence in sizes of a file system by bdf and du command?&lt;BR /&gt;&lt;BR /&gt;Plz reply &lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;Irshad</description>
      <pubDate>Sun, 06 Apr 2008 15:21:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174677#M321660</guid>
      <dc:creator>HP-FMS</dc:creator>
      <dc:date>2008-04-06T15:21:33Z</dc:date>
    </item>
    <item>
      <title>Re: difference between df &amp; bdf commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174678#M321661</link>
      <description>bdf shows KB by default.  du shows # of 512-byte sectors by default.  If you add the '-k' switch to du, then it will show size in KB.&lt;BR /&gt;&lt;BR /&gt;If that isn't what you are asking, perhaps better stating your question would help.</description>
      <pubDate>Sun, 06 Apr 2008 15:59:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174678#M321661</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2008-04-06T15:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: difference between df &amp; bdf commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174679#M321662</link>
      <description>Hi HP,&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt; difference between df &amp;amp; bdf commands&lt;BR /&gt;&lt;BR /&gt;bdf:The bdf command provides a simple tool for determining the amount of file system free space. The bdf output has several fields:&lt;BR /&gt;1. Filesystem---(Block device file of the file system)&lt;BR /&gt;2. Kbytes---(The number of kilobytes of total disk space on the file system)&lt;BR /&gt;3. Used---(The number of kilobytes of disk space used by existing files) etc.&lt;BR /&gt;&lt;BR /&gt;df:When you want to see more details, for example how much space is used beneath a directory, you can do this with the du command. By default, du shows the amount of space in blocks of 512 bytes. It is recursive, meaning that it starts at the current directory (or file specified) and reports on all files and directories from that point on down. &lt;BR /&gt;The main options are:&lt;BR /&gt;-k Report output in kilobytes.&lt;BR /&gt;-s Print only the grand total of disk usage for each of the specified directory operands.&lt;BR /&gt;&lt;BR /&gt;Please assign points, other way nobody can reply Ur question, because every person uses there valuable time for U.&lt;BR /&gt;&lt;BR /&gt;Thanks--Yaqub&lt;BR /&gt;HP Support!!!</description>
      <pubDate>Sun, 06 Apr 2008 19:12:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174679#M321662</guid>
      <dc:creator>YAQUB_1</dc:creator>
      <dc:date>2008-04-06T19:12:57Z</dc:date>
    </item>
    <item>
      <title>Re: difference between df &amp; bdf commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174680#M321663</link>
      <description>Irshad,&lt;BR /&gt;&lt;BR /&gt;The subject asks about "df &amp;amp; bdf".&lt;BR /&gt;The topic text asks about "bdf and du".&lt;BR /&gt;&lt;BR /&gt;I guess that's the one you really want to understand. Well, that question has been asked and answerred many, many times before.&lt;BR /&gt;&lt;BR /&gt;Most likely cause:&lt;BR /&gt;- files which are deleted, but still in open.&lt;BR /&gt;Second potential cause:&lt;BR /&gt;- sparse files &lt;BR /&gt;&lt;BR /&gt;Oracle TEMP files can represent both.&lt;BR /&gt;&lt;BR /&gt;Please google: hpux du bdf&lt;BR /&gt;Toss in a 'sparse' for intersting answers.&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Sun, 06 Apr 2008 19:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174680#M321663</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2008-04-06T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: difference between df &amp; bdf commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174681#M321664</link>
      <description>Were you asking about du(1) or df(1)?&lt;BR /&gt;Both return the output in bogus 512 blocks as Patrick mentioned.&lt;BR /&gt;Also du(1) doesn't account for removed but open files.  (There are many threads on this.)</description>
      <pubDate>Sun, 06 Apr 2008 19:45:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174681#M321664</guid>
      <dc:creator>Dennis Handly</dc:creator>
      <dc:date>2008-04-06T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: difference between df &amp; bdf commands</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174682#M321665</link>
      <description>Most likely sparse files (very common question). Most databses create only a few parts of data files at semi-random file positions, the rest of the file is left undefined. A sparse file is one that has been created with 'holes' or unwritten parts.&lt;BR /&gt;&lt;BR /&gt;Consider writing a file with record #1, then by seeking to record one million, writing another record and then closing the file. The file has but two records and occupies only a couple of blocks but the missing parts are not stored nor counted in bdf(1) or du(1).&lt;BR /&gt;&lt;BR /&gt;Depending on the size of the file and the spareseness, the difference in apparent versus actual size may be VERY large.&lt;BR /&gt;&lt;BR /&gt;Create your own sparse file with:&lt;BR /&gt;&lt;BR /&gt;dd if=/etc/issue of=/var/tmp/sparse bs=2048k seek=1&lt;BR /&gt;&lt;BR /&gt;where you will see the original file is just a few dozen bytes, the result with ls -l or wc -c shows a 2 meg file, but du(1) will show the file as occupying just a bit more than the original /etc/issue file. A cp(1) of the file will create a new file that is the same size (using ls -l or wc -c) but du(1) will now show a MUCH larger size than the original file.&lt;BR /&gt;&lt;BR /&gt;A common file that is often sparse is a core file from a crashed program. Another file that might be sparse is /etc/mail/aliases.pag. And of course, any programmer could write special code that creates a sparse file. Also note that bdf can take a few seconds to report updated information  when a large file is removed.</description>
      <pubDate>Sun, 06 Apr 2008 20:19:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/difference-between-df-amp-bdf-commands/m-p/4174682#M321665</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2008-04-06T20:19:51Z</dc:date>
    </item>
  </channel>
</rss>

