cheat/main.typ

39 lines
631 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
useradd -md name # Créer un user avec home et skel
```
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
```
],
[],
)