check_latest_version && sudo apt update && sudo apt upgrade -y
Identify space usage:
df -h
du -sh /*
du -sh /path/* | sort -hr
Remove unnecessary files:
sudo apt autoremove
sudo journalctl --vacuum-time=7d
find /tmp -type f -atime +7 -delete
Verify inode usage:
df -i
find /path -type f | wc -l
for dir in /*; do echo "$dir: $(find "$dir" -type f | wc -l)"; done
ENOSPC occurs when there is insufficient space on the storage device to complete an operation.
lsof | grep deleted
du -x --max-depth=1 /
find / -size +100M -type f
stat -f /path