Desk Space Debugging

Check Disk Space

Ensure that there is enough free disk space on the system. You can check disk space using the df command:

df -h

Check for Large Files or Directories

Run the following command to find large files and directories on the root filesystem:

sudo du -h / | grep '^[0-9\.]\+G'

Check directory sizes inside a specific path

Run the following command to find large files and directories on the specified directory:

sudo du -h --max-depth=1 /home/username/documents

check file sizes and sort by size

sudo du -h --max-depth=1 /home/username/documents | sort -h

Removing a directory and it's content

rm -r /path/to/directory

Last updated