feat: initial commit
This commit is contained in:
commit
649f66fbf1
19 changed files with 512 additions and 0 deletions
35
docs/linux/disk-management.md
Normal file
35
docs/linux/disk-management.md
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
# 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 .
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue