- Nr.
- 28
- Datum
- Lernziel
- Terminal-Start, Lektion 8
- Stufe
- 2 von 3
Befehl des Tages Nr. 28: type und which
Zweck: Zeigt, was wirklich startet, wenn du einen Befehl tippst.
Syntax: type name, which name
Beispiel:
type cd
cd is a shell builtin
type ls
ls is /usr/bin/ls
which ls
/usr/bin/ls Ausgabe aus dem Simulator, wie auf einem echten Linux.
Optionen:
Distributionen: Unter Debian und Ubuntu ist ls oft ein Alias für Farben. type zeigt das, which nicht.
Im Terminal ausprobieren Bild teilen
Füllt den Befehl ein. Ausgeführt wird erst, wenn du Enter drückst.