Update 03-01-2024
This commit is contained in:
@@ -94,6 +94,34 @@ $ ls archive.tar
|
||||
|
||||
|
||||
|
||||
#### xz (tar 1.22+)
|
||||
|
||||
Compresser un fichier au format .xz:
|
||||
|
||||
```bash
|
||||
$ xz -k9 monfichier
|
||||
```
|
||||
|
||||
Compresser une archive au format .tar.xz:
|
||||
|
||||
```bash
|
||||
$ tar cfJ fichier.tar.xz mondossier
|
||||
```
|
||||
|
||||
Décompresser un fichier au format .xz:
|
||||
|
||||
```bash
|
||||
$ xz -d monfichier
|
||||
```
|
||||
|
||||
Décompresser une archive au format .tar.xz:
|
||||
|
||||
```bash
|
||||
$ tar -xJf fichier.tar.xz
|
||||
```
|
||||
|
||||
|
||||
|
||||
#### zip
|
||||
|
||||
Compresser avec zip:
|
||||
|
||||
@@ -75,4 +75,17 @@ hello.txt link hello_you.txt
|
||||
|
||||
file_1 et hard_ln ont le même inode.
|
||||
|
||||
Si on supprime `file_1`, `hard_ln` conserve le même contenu.
|
||||
Si on supprime `file_1`, `hard_ln` conserve le même contenu.
|
||||
|
||||
|
||||
|
||||
#### Origine d'un lien
|
||||
|
||||
```bash
|
||||
/opt/homebrew/share/zsh/site-functions stable
|
||||
|
||||
❯ readlink -f _yq
|
||||
/opt/homebrew/Cellar/yq/4.40.5/share/zsh/site-functions/_yq
|
||||
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user