tech:shell_gnu_tar_-_commande_tar
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:shell_gnu_tar_-_commande_tar [2025/03/26 17:43] – Jean-Baptiste | tech:shell_gnu_tar_-_commande_tar [2025/06/06 09:36] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 13: | Ligne 13: | ||
| ## Exemples / options | ## Exemples / options | ||
| - | ### Exclusion | + | ### Inclusion / Exclusion |
| ~~~bash | ~~~bash | ||
| Ligne 24: | Ligne 24: | ||
| - | ### Spécifier le chemin racine - éviter ' | + | Spécifier le chemin racine - éviter ' |
| Utiliser l' | Utiliser l' | ||
| Ligne 38: | Ligne 38: | ||
| - | ### Dot dir dossier point à la racine | + | #### Dot dir dossier point à la racine |
| - | #### Creation d' | + | ##### Creation d' |
| Dossier " | Dossier " | ||
| Ligne 57: | Ligne 57: | ||
| # Ou | # Ou | ||
| - | # find . -print0 | + | #find . -print0 |
| $ find . -printf " | $ find . -printf " | ||
| + | |||
| + | # Autre | ||
| + | # find -mindepth 1 . | ||
| ~~~ | ~~~ | ||
| - | #### Extraction d' | + | ##### Extraction d' |
| ~~~bash | ~~~bash | ||
| tar --strip-components 1 -xvf plop.tar.gz | tar --strip-components 1 -xvf plop.tar.gz | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| + | |||
| + | ### Droits / permissions / owner | ||
| + | |||
| + | GNU tar allows you not to preserve the owner and permissions. | ||
| + | ~~~bash | ||
| + | tar -c -f archive.tar --owner=0 --group=0 --no-same-owner --no-same-permissions | ||
| + | ~~~ | ||
| + | |||
| Ligne 108: | Ligne 120: | ||
| # Mais faire : | # Mais faire : | ||
| + | mv plop.tgz2 plop2.tgz | ||
| pkgdiff -hide-unchanged plop.tgz plop2.tgz | pkgdiff -hide-unchanged plop.tgz plop2.tgz | ||
| ~~~ | ~~~ | ||
tech/shell_gnu_tar_-_commande_tar.1743007431.txt.gz · Dernière modification : de Jean-Baptiste
