Skip to Content
avatar image
Former Member

to know the disk space

how to know the complete disk space in unix -----jsut run this single command line after logging as root sz=0; lspv |while read h r; do s=`bootinfo -s $h`; let sz=sz+$s; done; let sz=$sz/1024; echo "$sz GB" u will get the size in total GB

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 01, 2017 at 05:33 PM

    How about a simple "df -kh" ? :) Or maybe I just don't fully understood the question. :)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 11, 2017 at 04:05 PM

    Dear Pawan,

    Running the mentioned command seems to be the easiest way:

    sz=0; lspv |while read h r; do s=`bootinfo -s $h`; let sz=sz+$s; done; let sz=$sz/1024; echo "$sz GB"

    Regards,

    Emoke

    Add comment
    10|10000 characters needed characters exceeded