有人可以帮助我理解以下输出吗:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 8.0G 7.5G 167M 98% /
udev 7.4G 8.0K 7.4G 1% /dev
tmpfs 3.0G 200K 3.0G 1% /run
none 5.0M 0 5.0M 0% /run/lock
none 7.4G 0 7.4G 0% /run/shm
我没有发现任何文件夹占用了那么多空间/
。我猜是临时进程占用了这些空间,但不太确定。
我不确定为什么我们有udev
(7.4G)和none
(7.4G)?
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 7.4G 8.0K 7.4G 1% /dev
tmpfs 3.0G 200K 3.0G 1% /run
none 7.4G 0 7.4G 0% /run/shm
我已经手动检查过了du -sh /*
。我是否应该假设磁盘被临时文件系统占用了?请参见以下输出:
# du -sh /*
8.7M /bin
19M /boot
4.0K /data2
8.0K /dev
5.9M /etc
196M /home
0 /initrd.img
80M /lib
4.0K /lib64
16K /lost+found
4.0K /media
20K /mnt
4.0K /opt
du: cannot access `/proc/21550/task/21550/fd/4': No such file or directory
du: cannot access `/proc/21550/task/21550/fdinfo/4': No such file or directory
du: cannot access `/proc/21550/fd/4': No such file or directory
du: cannot access `/proc/21550/fdinfo/4': No such file or directory
0 /proc
4.6M /root
200K /run
9.4M /sbin
4.0K /selinux
4.0K /srv
0 /sys
4.0K /tmp
757M /usr
343M /var
0 /vmlinuz