> For the complete documentation index, see [llms.txt](https://docs.sikka.io/vps-workbook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sikka.io/vps-workbook/linux-debugging/desk-space-debugging.md).

# 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**&#x20;

&#x20;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**

&#x20;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
```
