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:05] – cyrille | informatique:system_admin:shell [12/12/2024 11:32] (Version actuelle) – bash howto and tuto cyrille | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| ====== Shell ====== | ====== Shell ====== | ||
| - | ===== Tips ===== | + | sh, bash |
| - | ==== Redirection flux standard ==== | + | Bash: |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| - | Avec linux et windows, pour rediriger la sortie d' | + | **Control Keys**: |
| - | <code bash> | + | * Ctrl-S : Pause Display |
| - | cat toto.txt 2<&1 | + | * Ctrl-Q : Restart Display |
| - | </ | + | * Ctrl-C : Cancel Operation |
| - | Et pour rediriger tout ça dans un fichier | + | * Ctrl-U |
| - | <code bash> | + | * Ctrl-D : Signal End of File |
| - | cat toto.txt > | + | |
| - | </ | + | |
| - | ==== Remplacer dans un fichier ==== | ||
| + | ===== Commandes ===== | ||
| + | ==== sed ==== | ||
| + | |||
| + | |||
| + | * [[https:// | ||
| + | |||
| + | > [[http:// | ||
| + | >> | ||
| + | >> | ||
| + | >> | ||
| + | >> | ||
| + | |||
| + | === Remplacer dans un fichier === | ||
| pour remplacer | pour remplacer | ||
| Ligne 27: | 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.1266919542.txt.gz · Dernière modification : (modification externe)
