Linux Bash
Befehle Block 4
Befehle Block 4
56
0.0 (0)
Fichier Détails
Cartes-fiches | 56 |
---|---|
Langue | Deutsch |
Catégorie | Informatique |
Niveau | Collège |
Crée / Actualisé | 16.08.2019 / 26.08.2019 |
Attribution de licence | Pas de droit d'auteur (CC0) |
Lien de web |
https://card2brain.ch/box/20190816_linux_bash_9PC0
|
Intégrer |
<iframe src="https://card2brain.ch/box/20190816_linux_bash_9PC0/embed" width="780" height="150" scrolling="no" frameborder="0"></iframe>
|
history 6 > test.txt (Speichert die ausgabe von History 6 in test.txt)
echo "Hallo Welt" > test.txt (Fügt Text in Datei ein. ACHTUNG --> existiert die Datei bereits, wird sie überschrieben!)
echo "Hallo Luca" >> text.txt (Fügt den Text hinten an)
test.sh 2>error.log 1>erfolg.log
test.sh 2>>error.log 1>>erfolg.log
test.sh >test.log 2>&1
Einem Befehl wird z.B. eine Datei übergeben --> cat < testdatei.txt (übergibt cat die testdatei.txt)
Mit "tee". z.B. ./test.sh | tee test.log