리눅스 하드 디스크 및 파티션 공간 알아보기


df 는 리눅스에 설치된 하드 드라이브의 모든 파티션을 보여준다

df -hT

Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sda1     ext3    327M  133M  178M  43% /
tmpfs        tmpfs   1008M     0 1008M   0% /lib/init/rw
udev         tmpfs     10M  720K  9.3M   8% /dev
tmpfs        tmpfs   1008M     0 1008M   0% /dev/shm
/dev/sda9     ext3    280G  190G   76G  72% /home
/dev/sda8     ext3    373M   11M  343M   3% /tmp
/dev/sda5     ext3    4.6G  2.6G  1.8G  60% /usr
/dev/sda6     ext3    2.8G  1.4G  1.3G  51% /va

참고로 du 는 현재 디렉토리의 모든 파일 크기를 보여준다.

du -ah

4.0K    ./index.php
4.0K    ./index.php~
4.0K    ./index.html
16K     .

  1. #1 by 도니 on March 11th, 2010

    $ du -ch | grep total

    This would have only one line in its output that displays the total size of the current directory including all the subdirectories.

    From: http://www.codecoffee.com/tipsforlinux/articles/22.html

(will not be published)

  1. No trackbacks yet.