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:08] – 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 |
- | [[http://www.commentcamarche.net/faq/4801-guide-d-utilisation-du-shell-pour-debutant|Guide d' | + | Bash: |
+ | * [[https://www.baeldung.com/linux/use-command-line-arguments-in-bash-script|How to Use Command Line Arguments in a Bash Script]] | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | **Control Keys**: | ||
+ | * Ctrl-S : Pause Display | ||
+ | * Ctrl-Q : Restart Display | ||
+ | * Ctrl-C : Cancel Operation | ||
+ | * Ctrl-U : Cancel Line | ||
+ | * Ctrl-D : Signal End of File | ||
- | ===== Tips ===== | ||
- | ==== Redirection flux standard | + | ===== Commandes ===== |
+ | ==== sed ==== | ||
- | 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 ==== | + | * [[https:// |
+ | > [[http:// | ||
+ | >> | ||
+ | >> | ||
+ | >> | ||
+ | >> | ||
+ | |||
+ | === Remplacer dans un fichier === | ||
pour remplacer | pour remplacer | ||
Ligne 32: | 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.1266919681.txt.gz · Dernière modification : 19/05/2012 00:15 (modification externe)