title: Find the size of directory in unix
body: <p><strong>Problem Statement:-</strong></p>
  
  <p>I am getting this below exception-</p>
  
  <pre><code>org.apache.hadoop.hdfs.protocol.DSQuotaExceededException:
  org.apache.hadoop.hdfs.protocol.DSQuotaExceededException: The DiskSpace 
  quota of /tmp is exceeded: quota=659706976665600 diskspace consumed=614400.1g
  </code></pre>
  
  <p>So I just wanted to know how much is the size of /tmp directory currently and because of that I am getting this exception. How can I see the free space in /tmp?</p>
  
  <p><strong>Update:-</strong></p>
  
  <pre><code>bash-3.00$ df -h /tmp
  Filesystem             size   used  avail capacity  Mounted on
  rpool/tmp               10G   2.2G   7.8G    22%    /tmp
  </code></pre>
  
  <p>I am puzzled right now why I am getting that exception then as it clearly states above that I have space available.</p>