feat: initial commit

This commit is contained in:
Simon Cornet 2025-05-30 18:37:57 +02:00
commit 649f66fbf1
19 changed files with 512 additions and 0 deletions

View 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 .
```

13
docs/linux/journalctl.md Normal file
View file

@ -0,0 +1,13 @@
# Journalctl
Follow logs live
```shell
sudo journalctl -u sshd --follow
```
Cleanup logs
```shell
sudo journalctl --vacuum-size=1K
```

23
docs/linux/packages.md Normal file
View file

@ -0,0 +1,23 @@
# Packages and updates
## Debian / Ubuntu
Update and upgrade.
```shell
apt update
apt upgrade -y
```
Default packages.
```shell
apt install -y sudo net-tools wget curl unzip htop vim
```
Autoremove and cleanup.
```shell
apt autoremove -y
apt clean
```