# Disk / Space CMD

## <span class="text-big">Disk / Space CMD</span>

<span class="text-big">Will give the usage of the user you are logged in as</span>

```bash
sudo du -h --max-depth=1
```

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/scaled-1680-/image.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/image.png)

The `df` command primarily checks disk usage on a mounted filesystem. If you don't include a file name, the output shows the space available on all currently mounted filesystems. Disk space is shown in 1K blocks by default:

```bash
df -h
```

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/scaled-1680-/Kcmimage.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/Kcmimage.png)

List All Block Devices in Linux

lsblk

```
lsblk
```

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/scaled-1680-/zVQimage.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/zVQimage.png)

[![image.png](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/scaled-1680-/aXfimage.png)](https://bookstack.thecartwrights.nz/uploads/images/gallery/2024-03/aXfimage.png)