Check for storage space eaters

df

Get an overview of the file system disk space usage.

sudo df -h

The result can looks similar to this.

Filesystem                         Size  Used Avail Use% Mounted on
udev                               3.9G     0  3.9G   0% /dev
tmpfs                              800M  4.6M  795M   1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv   39G  9.3G   27G  26% /
tmpfs                              4.0G   28K  4.0G   1% /dev/shm
tmpfs                              5.0M     0  5.0M   0% /run/lock
tmpfs                              4.0G     0  4.0G   0% /sys/fs/cgroup
/dev/vda2                          976M  105M  805M  12% /boot
/dev/loop0                          56M   56M     0 100% /snap/core18/1944
/dev/loop1                          70M   70M     0 100% /snap/lxd/19188
/dev/loop2                          32M   32M     0 100% /snap/snapd/10707
/dev/loop3                          33M   33M     0 100% /snap/snapd/11588
/dev/loop4                          56M   56M     0 100% /snap/core18/1997
tmpfs                              800M     0  800M   0% /run/user/1000
/dev/loop5                          71M   71M     0 100% /snap/lxd/19647
tmpfs                              800M     0  800M   0% /run/user/1001

du

Is helpful in estimating file space usage.

sudo du -d 1 -h /

-d 1: show only one folder deep

-h: human readable

The result should look similar to this.

76K     /tmp
5.6M    /etc
1.6G    /var
4.0K    /srv
1.1G    /snap
0       /sys
4.6M    /run
76K     /home
16K     /lost+found
2.2G    /opt
28K     /dev
103M    /boot
52K     /root
1.8G    /usr
4.0K    /media
du: cannot access '/proc/148857/task/148857/fd/4': No such file or directory
du: cannot access '/proc/148857/task/148857/fdinfo/4': No such file or directory
du: cannot access '/proc/148857/fd/3': No such file or directory
du: cannot access '/proc/148857/fdinfo/3': No such file or directory
0       /proc
4.0K    /cdrom
4.0K    /mnt
11G     /