liunx df -h

     liunx下 解压db2 数据库,发现报错:

tar: server/db2ls: Cannot write: No space left on device

tar: Skipping to next header
server/installFixPack
tar: server/installFixPack: Cannot write: No space left on device
tar: Skipping to next header
tar: Error exit delayed from previous errors
     最后发现是由于空间不够造成
df -h 可以查看文件系统的大小
[root @localhost etc]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             3.8G  3.8G     0 100% /
/dev/sda3              15G  167M   14G   2% /home
/dev/sda1              46M   11M   33M  25% /boot
tmpfs                 252M     0  252M   0% /dev/shm

你可能感兴趣的:(liunx,df,-h)