On my lubuntu 24.04 I have a small / filesystem so I check from time to time if enough space is free.
For this I use
sudo du -xh -d 3 / | sort -h -r | egrep -v '*M|*K'
grep: warning: * at start of expression
grep: warning: * at start of expression
27G /
12G /var
10G /var/cache
9,8G /var/cache/apt
9,6G /usr
6,0G /usr/lib
5,6G /boot
2,8G /boot/ubuntu-20.10
2,5G /boot/bullseye
2,2G /usr/share
1,9G /usr/lib/x86_64-linux-gnu
1,7G /var/lib
This is not a question where my space is gone I can not figure out what the warning is meaning and how I can avoid it.
env | grep -i shell
SHELL=/bin/bash