<?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: How to get directory size? in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717546#M59376</link>
    <description>$ du /dirpath&lt;BR /&gt;The above command would give you the directory size of the directory &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ du -ah&lt;BR /&gt;This command would display in its output, not only the directories but also all the files that are present in the current directory. Note that 'du' always counts all files and directories while giving the final size in the last line. But the '-a' displays the filenames along with the directory names in the output. '-h' is once again human readable format.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Dec 2010 08:13:15 GMT</pubDate>
    <dc:creator>ganesh pink</dc:creator>
    <dc:date>2010-12-10T08:13:15Z</dc:date>
    <item>
      <title>How to get directory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717541#M59371</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;how to get particular directory size ?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2010 10:44:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717541#M59371</guid>
      <dc:creator>cutefriend</dc:creator>
      <dc:date>2010-11-24T10:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get directory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717542#M59372</link>
      <description>Hi cutefriend,&lt;BR /&gt;&lt;BR /&gt;try "du -sk ."  while positioning yourself in the directory&lt;BR /&gt;&lt;BR /&gt;or "du -sk /path/to/directory"&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Wed, 24 Nov 2010 11:01:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717542#M59372</guid>
      <dc:creator>FLQ</dc:creator>
      <dc:date>2010-11-24T11:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to get directory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717543#M59373</link>
      <description>&lt;!--!*#--&gt;What does "directory size" mean to you?&lt;BR /&gt;&lt;BR /&gt;      ls -ld directory_name&lt;BR /&gt;      du -ks directory_name</description>
      <pubDate>Wed, 24 Nov 2010 14:35:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717543#M59373</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2010-11-24T14:35:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to get directory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717544#M59374</link>
      <description>Hi Cuty,&lt;BR /&gt;&lt;BR /&gt;By "directory size" I trust:&lt;BR /&gt;1.) How much space is the directory (folder?) occupying?&lt;BR /&gt;&lt;BR /&gt;Ans:  du -s -k /dirpath&lt;BR /&gt;      du -s -k /dir/path/dirfolder&lt;BR /&gt;&lt;BR /&gt;2.) Capacity of the directory/folder to hold files (in terms of MBytes, Gbytes or Tbyets?)&lt;BR /&gt;&lt;BR /&gt;Ans:  df -h /dirpath&lt;BR /&gt;      df -h /dir/path/dirfolder&lt;BR /&gt;&lt;BR /&gt;2.1) No of Files (aka inodes) capacity and usage -- i.e. how many files aer stashed in its placeholder filesystem&lt;BR /&gt;&lt;BR /&gt;Ans:  df -i /dirpath&lt;BR /&gt;      df -i /dir/path/dirfolder&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;3.) How many files are contained there at?&lt;BR /&gt;&lt;BR /&gt;Ans:  df -i /dirpath  (if dir/folder is a filesystem)&lt;BR /&gt;      df -i /dir/path/dirfolder  (if dir/folder is a filesystem)&lt;BR /&gt;      ls -lR /dirpath | wc -l&lt;BR /&gt;      ls -lR /dir/path/dirfolder |wc -l &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hope this helps.&lt;BR /&gt;</description>
      <pubDate>Wed, 24 Nov 2010 15:04:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717544#M59374</guid>
      <dc:creator>Alzhy</dc:creator>
      <dc:date>2010-11-24T15:04:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get directory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717545#M59375</link>
      <description>It's very common answer in unix.&lt;BR /&gt;&lt;BR /&gt;use du -sh (or) du -sk&lt;BR /&gt;&lt;BR /&gt;see, below, U can get the directory size for /var/log&lt;BR /&gt;&lt;BR /&gt;root@chitti # du -sh /var/log&lt;BR /&gt; 102K   /var/log&lt;BR /&gt;</description>
      <pubDate>Thu, 25 Nov 2010 04:49:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717545#M59375</guid>
      <dc:creator>bullz</dc:creator>
      <dc:date>2010-11-25T04:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get directory size?</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717546#M59376</link>
      <description>$ du /dirpath&lt;BR /&gt;The above command would give you the directory size of the directory &lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;$ du -ah&lt;BR /&gt;This command would display in its output, not only the directories but also all the files that are present in the current directory. Note that 'du' always counts all files and directories while giving the final size in the last line. But the '-a' displays the filenames along with the directory names in the output. '-h' is once again human readable format.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2010 08:13:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-to-get-directory-size/m-p/4717546#M59376</guid>
      <dc:creator>ganesh pink</dc:creator>
      <dc:date>2010-12-10T08:13:15Z</dc:date>
    </item>
  </channel>
</rss>

