informatique:system_admin:shell
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 | ||
| informatique:system_admin:shell [23/02/2010 11:07] – cyrille | informatique:system_admin:shell [12/12/2024 11:32] (Version actuelle) – bash howto and tuto cyrille | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Shell ====== | ====== Shell ====== | ||
| - | [[http:// | + | sh, bash |
| - | ===== Tips ===== | + | Bash: |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| - | ==== Redirection flux standard ==== | + | **Control Keys**: |
| + | * Ctrl-S : Pause Display | ||
| + | * Ctrl-Q : Restart Display | ||
| + | * Ctrl-C : Cancel Operation | ||
| + | * Ctrl-U : Cancel Line | ||
| + | * Ctrl-D : Signal End of File | ||
| - | Avec linux et windows, pour rediriger la sortie d' | ||
| - | <code bash> | ||
| - | cat toto.txt 2<&1 | ||
| - | </ | ||
| - | Et pour rediriger tout ça dans un fichier : | ||
| - | <code bash> | ||
| - | cat toto.txt > | ||
| - | </ | ||
| - | ==== Remplacer dans un fichier | + | ===== Commandes ===== |
| + | ==== sed ==== | ||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | > [[http:// | ||
| + | >> | ||
| + | >> | ||
| + | >> | ||
| + | >> | ||
| + | |||
| + | === Remplacer dans un fichier === | ||
| pour remplacer | pour remplacer | ||
| Ligne 29: | Ligne 40: | ||
| </ | </ | ||
| + | |||
| + | |||
| + | ===== Tips ===== | ||
| + | |||
| + | ==== Redirection flux standard ==== | ||
| + | |||
| + | * https:// | ||
| + | * https:// | ||
| + | |||
| + | tag: stderr, redirect | ||
| + | |||
| + | Avec linux et windows, pour rediriger la sortie d' | ||
| + | <code bash> | ||
| + | cat toto.txt 2<&1 | ||
| + | </ | ||
| + | Et pour rediriger tout ça dans un fichier : | ||
| + | <code bash> | ||
| + | cat toto.txt > | ||
| + | </ | ||
| + | Ou en utilisant la commande '' | ||
| + | <code bash> | ||
| + | cat toto.txt | tee output.log | ||
| + | </ | ||
| + | |||
| + | Un " | ||
| + | <code bash> | ||
| + | command &> file | ||
| + | </ | ||
| ==== Effacer des fichiers selon leur âge ==== | ==== Effacer des fichiers selon leur âge ==== | ||
informatique/system_admin/shell.1266919632.txt.gz · Dernière modification : (modification externe)
