title: How do I get the percentage of used storage in the UNIX server
body: <p>I want to get the only Percentage of the Disk space in the UNIX server </p>
  
  <pre><code>Filesystem      Size  Used Avail Use% Mounted on
  /dev/sda1       457G   90G  344G  21% /
  udev            2.0G  4.0K  2.0G   1% /dev
  tmpfs           798M  1.1M  797M   1% /run
  none            5.0M     0  5.0M   0% /run/lock
  none            2.0G   23M  2.0G   2% /run/shm
  cgroup          2.0G     0  2.0G   0% /sys/fs/cgroup
  </code></pre>
  
  <p>I am using the following command to get the Percentage data </p>
  
  <pre><code>df -h &gt; space.txt
  
  space=`head -2 space.txt | tail -1 | cut -d' ' -f15 | sed 's/%.*$//'`
  </code></pre>
  
  <p>Is there any command to get the "Used percentage" directly </p>