docs-simoncor-net/docs/linux/disk-management.md
2025-05-30 18:37:57 +02:00

35 lines
581 B
Markdown

# Disk management
### Show filesystems
```shell
sudo df -h
```
Example output:
```shell
Filesystem Size Used Avail Use% Mounted on
udev 456M 0 456M 0% /dev
tmpfs 97M 9.4M 87M 10% /run
/dev/vda1 19G 2.6G 16G 15% /
tmpfs 481M 0 481M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 97M 0 97M 0% /run/user/1003
```
### List folders
```shell
du -h -d 1 | sort -h
```
Example output:
```shell
8.0K ./.ansible
8.0K ./.config
8.0K ./.vim
12K ./.ssh
172K .
```