我正在运行一个 bash 脚本,它在 tmp 目录中创建了一个 14G 的文件,我删除了它仍然找不到很大的目录或文件。
我的 df -h 输出
Filesystem Size Used Avail Use% Mounted on
udev 474M 0 474M 0% /dev
tmpfs 99M 11M 88M 11% /run
/dev/vda1 25G 25G 0 100% /
tmpfs 491M 0 491M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 491M 0 491M 0% /sys/fs/cgroup
/dev/vda15 105M 3.9M 101M 4% /boot/efi
/dev/loop0 90M 90M 0 100% /snap/core/7917
/dev/loop1 55M 55M 0 100% /snap/lxd/12211
/dev/loop2 94M 94M 0 100% /snap/core/8935
/dev/loop3 68M 68M 0 100% /snap/lxd/14194
tmpfs 99M 0 99M 0% /run/user/0
/dev/loop4 55M 55M 0 100% /snap/core18/1705
/dev/loop5 49M 49M 0 100% /snap/gtk-common-themes/1474
/dev/loop6 153M 153M 0 100% /snap/chromium/1071
tmpfs 99M 0 99M 0% /run/user/1000
我在 / 目录中的 du -sh 输出
du: cannot access './proc/19935/task/19935/fd/4': No such file or directory
du: cannot access './proc/19935/task/19935/fdinfo/4': No such file or directory
du: cannot access './proc/19935/fd/3': No such file or directory
du: cannot access './proc/19935/fdinfo/3': No such file or directory
4.7G .
由于磁盘已满,我无法安装 ncdu 或任何其他工具,考虑到 du -sh 之后的汇总大小,剩余的空间在哪里,超出 25GB
我的 lsb 发布
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=19.10
DISTRIB_CODENAME=eoan
DISTRIB_DESCRIPTION="Ubuntu 19.10"
du -sh 的输出 /*/
119M /bin/
97M /boot/
0 /dev/
5.9M /etc/
212M /home/
682M /lib/
4.0K /lib32/
4.0K /lib64/
4.0K /libx32/
16K /lost+found/
4.0K /media/
4.0K /mnt/
4.0K /opt/
du: cannot access '/proc/20791/task/20791/fd/4': No such file or directory
du: cannot access '/proc/20791/task/20791/fdinfo/4': No such file or directory
du: cannot access '/proc/20791/fd/3': No such file or directory
du: cannot access '/proc/20791/fdinfo/3': No such file or directory
0 /proc/
72K /root/
11M /run/
30M /sbin/
1.9G /snap/
4.0K /srv/
0 /sys/
17M /tmp/
845M /usr/
768M /var/