Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:hilfe [2020/08/31 12:58] 127.0.0.1 Externe Bearbeitung |
admin_grundlagen:hilfe [2025/03/24 09:28] (aktuell) |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== getting help for a command ====== | + | ====== Hilfe direkt vom Kommando abfragen ====== |
| ls --help | ls --help | ||
| ls -h | ls -h | ||
| ls -? | ls -? | ||
| - | ... | + | ... funktioniert mit vielen Kommandos, aber nicht mit allen. |
| - | works with many commands, not with all | + | |
| - | web based: http://explainshell.com/explain | + | Webbasiert: http://explainshell.com/explain |
| - | ====== man ====== | + | ====== Manual Page ====== |
| - | ===== show help for a command ===== | + | Handbuchseite eines Kommandos anzeigen (anhand von ''ip'' und ''crontab''): (( ''man'' öffnet die Hilfeseite nur, angezeigt wird sie von [[less]] )) |
| man ip | man ip | ||
| - | ((shotkeys like in [[less]])) | ||
| + | Nach 'crontab' von Anfang an (Section 1, dann 2, 3, ...) suchen und ersten Treffer anzeigen: | ||
| man crontab | man crontab | ||
| - | sucht nach 'crontab' von Anfang (Section 1) an | + | |
| + | Nach 'crontab' nur innerhalb von Section 5 suchen: | ||
| man 5 crontab | man 5 crontab | ||
| - | sucht nach 'crontab' nur innerhalb von Section 5 | ||
| - | show all present man-pages | + | Handbuchseite für ''crontab'' schön formatiert als PDF generieren (Minuszeichen am Ende nicht vergessen): |
| + | man -t crontab | gs -q -dNOPAUSE -sDEVICE=pdfwrite -sOutputFile=crontab.pdf - | ||
| + | |||
| + | Alle vorhandenen Handbuchseiten auflisten: | ||
| man -a passwd | man -a passwd | ||
| - | Gliederung von man-Pages: | + | Gliederung von Handbuchseiten: |
| | NAME | commandname with short description of the syntax | | | NAME | commandname with short description of the syntax | | ||
| | SYNOPSIS | overview command incl. parameters | | | SYNOPSIS | overview command incl. parameters | | ||
| Zeile 31: | Zeile 33: | ||
| | BUGS | known bugs of the command | | | BUGS | known bugs of the command | | ||
| - | ===== find man-pages to a topic ===== | + | ===== Handbuchseite nach Stichwort finden ===== |
| apropos password | apropos password | ||
| whatis passwd | whatis passwd | ||
| + | man -k password | ||
| - | ===== help for shell builtins ===== | + | ''apropos'' ist ein symbolischer Link auf ''man -k''. |
| + | ===== Hilfe zu in die Shell eingebauten Kommandos ===== | ||
| help alias | help alias | ||
| - | ====== info ====== | + | ''help'' ohne ein Kommando dahinter listet alle in die Shell eingebauten Kommandos auf. |
| + | ====== Info-Seiten ====== | ||
| + | |||
| + | Das GNU-Projekt bevorzugt ''info''-Pages statt der üblichen Handbuchseiten. Das Blättern darin ist | ||
| + | aber eher umständlich: | ||
| info date | info date | ||
| - | ====== documentation provided by the distribution ====== | + | ====== Weitere Tools ====== |
| + | Verwendung auf eigene Gefahr ;-) | ||
| + | |||
| + | == tldr == | ||
| + | # apt-get install tldr | ||
| + | $ tldr -u | ||
| + | $ tldr rsync | ||
| + | |||
| + | == cheat.sh == | ||
| + | $ curl cht.sh | ||
| + | $ curl cht.sh/rsync | ||
| + | $ curl cht.sh/go+create+file | ||
| + | $ curl cht.sh/shell+create+file | ||
| + | |||
| + | ====== Dokumentation von der jeweiligen Linux-Distribution ====== | ||
| ===== Debian ===== | ===== Debian ===== | ||
| * https://www.debian.org/doc | * https://www.debian.org/doc | ||
| Zeile 59: | Zeile 81: | ||
| siehe [[Fehlersuche]] | siehe [[Fehlersuche]] | ||
| - | ====== empfehlenswerte Webseiten ====== | + | ====== Empfehlenswerte Webseiten ====== |
| * [[ http://www.tldp.org | Linux Documentation Projekt ]] HowTos und Guides | * [[ http://www.tldp.org | Linux Documentation Projekt ]] HowTos und Guides | ||
| * [[ http://www.oreilly.de/open-books | O'Reilly Online Bücher ]] | * [[ http://www.oreilly.de/open-books | O'Reilly Online Bücher ]] | ||
| Zeile 80: | Zeile 102: | ||
| Mitschrift abspielen: | Mitschrift abspielen: | ||
| scriptreplay mitschrift.timing mitschrift.session | scriptreplay mitschrift.timing mitschrift.session | ||
| + | | ||
| + | | ||