Hier werden die Unterschiede zwischen zwei Versionen gezeigt.
| Beide Seiten, vorherige Überarbeitung Vorherige Überarbeitung Nächste Überarbeitung | Vorherige Überarbeitung | ||
|
admin_grundlagen:hilfe [2013/08/23 09:07] ingo_wichmann [RedHat] |
admin_grundlagen:hilfe [2025/03/24 09:28] (aktuell) |
||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| - | ====== Hilfe zu einem Befehl anzeigen ====== | + | ====== Hilfe direkt vom Kommando abfragen ====== |
| ls --help | ls --help | ||
| - | Funktioniert bei vielen Befehlen, nicht bei allen. | + | ls -h |
| + | ls -? | ||
| + | ... funktioniert mit vielen Kommandos, aber nicht mit allen. | ||
| - | ====== man ====== | + | Webbasiert: http://explainshell.com/explain |
| - | ===== Hilfe zu einem Befehl anzeigen ===== | + | |
| - | man ls | + | |
| + | ====== Manual Page ====== | ||
| + | Handbuchseite eines Kommandos anzeigen (anhand von ''ip'' und ''crontab''): (( ''man'' öffnet die Hilfeseite nur, angezeigt wird sie von [[less]] )) | ||
| + | man ip | ||
| + | |||
| + | Nach 'crontab' von Anfang an (Section 1, dann 2, 3, ...) suchen und ersten Treffer anzeigen: | ||
| + | man crontab | ||
| + | |||
| + | Nach 'crontab' nur innerhalb von Section 5 suchen: | ||
| + | man 5 crontab | ||
| + | |||
| + | 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 | ||
| - | ===== Hilfe-Seiten zu einem Thema finden ===== | + | Gliederung von Handbuchseiten: |
| + | | NAME | commandname with short description of the syntax | | ||
| + | | SYNOPSIS | overview command incl. parameters | | ||
| + | | DESCRIPTION | detailed description of the command and its options | | ||
| + | | FILES | related files | | ||
| + | | EXAMPLES | usage examples | | ||
| + | | SEE ALSO | related topics | | ||
| + | | COPYRIGHT | authors of the command | | ||
| + | | BUGS | known bugs of the command | | ||
| + | |||
| + | ===== Handbuchseite nach Stichwort finden ===== | ||
| apropos password | apropos password | ||
| - | whatis password | + | whatis passwd |
| + | man -k password | ||
| - | ===== interne Shell Befehle ===== | + | ''apropos'' ist ein symbolischer Link auf ''man -k''. |
| + | ===== Hilfe zu in die Shell eingebauten Kommandos ===== | ||
| help alias | help alias | ||
| - | ====== Dokumentation der Distributionen ====== | + | ''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 | ||
| + | |||
| + | ====== 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 ===== | ||
| - | * http://www.debian.de/doc/ | + | * https://www.debian.org/doc |
| - | * https://help.ubuntu.com/10.04 | + | |
| + | ===== Ubuntu ===== | ||
| + | * https://help.ubuntu.com/lts/ubuntu-help | ||
| ===== SuSE ===== | ===== SuSE ===== | ||
| - | * http://de.opensuse.org/Dokumentation | + | * http://de.opensuse.org |
| - | * http://www.novell.com/de-de/documentation/opensuse113/index.html | + | |
| ===== RedHat ===== | ===== RedHat ===== | ||
| * http://www.redhat.com/docs/manuals/enterprise/ | * http://www.redhat.com/docs/manuals/enterprise/ | ||
| - | * http://www.centos.org/docs/6/ | + | * http://www.centos.org/docs/5/ |
| ====== Bugtracker der Distributionen ====== | ====== Bugtracker der Distributionen ====== | ||
| siehe [[Fehlersuche]] | siehe [[Fehlersuche]] | ||
| - | ====== Webseiten ====== | + | ====== Empfehlenswerte Webseiten ====== |
| * [[ http://www.tldp.org | Linux Documentation Projekt ]] HowTos und Guides | * [[ http://www.tldp.org | Linux Documentation Projekt ]] HowTos und Guides | ||
| - | * [[ http://linuxhaven.de/ | Deutsche]] Deutsche Übersetzungen der HowTos und Guides, oft veraltet | + | * [[ http://www.oreilly.de/open-books | O'Reilly Online Bücher ]] |
| - | * [[ http://www.oreilly.de/online-books | O'Reilly Online Bücher ]] | + | |
| - | * [[ http://www.linwiki.org | Linuxfibel - Wikibasiertes Online Buch ]] | + | |
| * [[ http://www.prolinux.de | Prolinux News, Tipps und Anleitungen ]] | * [[ http://www.prolinux.de | Prolinux News, Tipps und Anleitungen ]] | ||
| * [[ http://de.wikipedia.org/ | Wikipedia ]] | * [[ http://de.wikipedia.org/ | Wikipedia ]] | ||
| * [[ http://debiananwenderhandbuch.de/ | Debian Anwenderhandbuch ]] | * [[ http://debiananwenderhandbuch.de/ | Debian Anwenderhandbuch ]] | ||
| + | * [[ https://ubuntuusers.de/ | Ubuntuusers ]] | ||
| + | |||
| - | ====== Software ====== | ||
| - | * www.freshmeat.net | ||
| - | * www.heise.de/software | ||
| ====== User Groups ====== | ====== User Groups ====== | ||
| Zeile 53: | Zeile 98: | ||
| ====== Eingegebene Befehle mitprotokollieren ====== | ====== Eingegebene Befehle mitprotokollieren ====== | ||
| script -t 2> mitschrift.timing -a mitschrift.session | script -t 2> mitschrift.timing -a mitschrift.session | ||
| - | Protokoll beenden: | + | Protokoll beenden: ''Strg + d'' |
| - | ''Strg + d'' | + | |
| Mitschrift abspielen: | Mitschrift abspielen: | ||
| scriptreplay mitschrift.timing mitschrift.session | scriptreplay mitschrift.timing mitschrift.session | ||
| + | | ||
| + | | ||