尝试确定我的 /var/run 是否正在使用磁盘。查看命令输出:
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg0-root 40G 15G 26G 36% /
none 3.9G 340K 3.9G 1% /dev
none 3.9G 1.1M 3.9G 1% /dev/shm
tmpfs 3.9G 600K 3.9G 1% /tmp
none 3.9G 452K 3.9G 1% /var/run
none 3.9G 0 3.9G 0% /var/lock
none 3.9G 0 3.9G 0% /lib/init/rw
/dev/md0 236M 59M 165M 27% /boot
/dev/mapper/vg0-home 60G 58G 2.3G 97% /home
答案1
它们都是tmpfs
文件系统。使用-T
显示文件系统类型:
$ df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/mapper/vg0-root
reiserfs 40G 15G 26G 36% /
none devtmpfs 3.9G 340K 3.9G 1% /dev
none tmpfs 3.9G 1.1M 3.9G 1% /dev/shm
tmpfs tmpfs 3.9G 680K 3.9G 1% /tmp
none tmpfs 3.9G 452K 3.9G 1% /var/run
none tmpfs 3.9G 0 3.9G 0% /var/lock
none tmpfs 3.9G 0 3.9G 0% /lib/init/rw
/dev/md0 ext3 236M 59M 165M 27% /boot
/dev/mapper/vg0-home
reiserfs 60G 58G 2.3G 97% /home