informatique:linux:commandes_linux
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
informatique:linux:commandes_linux [2020/12/20 18:24] – [ip] Équivalence anciennes/nouvelles commandes pteu | informatique:linux:commandes_linux [2020/12/24 09:21] – [tee] pteu | ||
---|---|---|---|
Line 2622: | Line 2622: | ||
Un outil d' | Un outil d' | ||
- | par exemple on veut archiver le répertoire ./toto/ et tout son contenu (répertoires et fichiers normaux). | ||
- | tar cvf toto.tar ./toto | ||
- | (// | ||
- | On peut archiver | + | <code bash> |
- | tar czvf toto.tar.gz ./toto | + | # pour archiver le répertoire ./toto/ et tout son contenu |
+ | # (toto.tar désigne le nom de l'archive qu'on veut créer, il doit avoir l' | ||
+ | tar cvf toto.tar ./toto | ||
- | Plus tar__d__, pour le désarchiver : | + | # archiver ET compresser le fichier grâce à gunzip (-z) ou bunzip (-y) : |
- | tar zxf toto.tar | + | # -c pour compresser, -v pour un affichage verbeux, -f pour préciser |
+ | tar czvf toto.tar.gz ./toto | ||
+ | # extraire (-x) le contenu d'une archive gunzip (-z) : | ||
+ | tar zxf toto.tar | ||
+ | </ | ||
+ | |||
+ | =====tee===== | ||
+ | |||
+ | Permet de copier l' | ||
+ | <code bash> | ||
+ | $ echo toto | tee fic.log | ||
+ | toto | ||
+ | |||
+ | $ echo titi | tee -a fic.log | ||
+ | titi | ||
+ | |||
+ | $ cat fic.log | ||
+ | toto | ||
+ | titi | ||
+ | </ | ||
=====telnet===== | =====telnet===== |
informatique/linux/commandes_linux.txt · Last modified: 2024/04/05 06:58 by pteu