df


Filesystem     1K-blocks    Used Available Use% Mounted on
/dev/sda2       10079084 5998016   3569068  63% /
tmpfs             515368       0    515368   0% /dev/shm
/dev/sda1         495844   30199    440045   7% /boot
/dev/sda5        8125888 2891060   4822056  38% /home


cat diskfreesize.php


<?
        $df = diskfreespace("/usr/local/");
        echo $df."bytes"."\n";
    echo ($df/1024.0)."Mbytes"."\n";
    echo ($df/1024.0/1024.0)."Gbytes"."\n";
?>


php diskfreesize.php


3654696960bytes
3569040Mbytes
3485.390625Gbytes


신고

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret