cheat/main.typ

39 lines
630 B
Plaintext
Raw Normal View History

2024-03-06 11:02:01 +01:00
#import "template.typ"
#show: doc => template.apply(doc)
#grid(
columns: (1fr, 1fr),
[
2024-03-12 09:48:08 +01:00
= Linux install
```bash
2024-03-12 09:48:55 +01:00
useradd -m name # Créer un user avec home et skel
2024-03-12 09:48:08 +01:00
```
2024-03-06 11:02:01 +01:00
= Bash
```bash
~% FILE="example.tar.gz"
~% echo "${FILE%%.*}"
example
~% echo "${FILE%.*}"
example.tar
~% echo "${FILE#*.}"
tar.gz
~% echo "${FILE##*.}"
gz
```
= Screen
```sh
screen -S name # Créer un screen nommé
screen -ls # Lister les screens
screen -r name # Rattacher un screen
# <Ctrl+A> <d> # Se détacher du screen actuel
```
],
[],
)