terminal.cab

Alle Befehle

tail

Thema: Text

Programm: tail

Zeigt das Ende von Dateien.

Paket: text

Aufruf

tail [OPTION]... [FILE]...

Beschreibung

Show the end of each FILE, 10 lines unless told otherwise. A FILE named -, or no FILE, means the keyboard or pipe. -NUM as the first argument is the same as -n NUM.

Optionen im Simulator

11 weitere Optionen des echten Programms, im Simulator noch nicht
  • -f im Simulator noch nicht

    Im echten Linux wartet tail -f auf neue Zeilen, bis du Strg+C drückst. Warten kann der Simulator nicht.

  • --follow Wert freiwillig im Simulator noch nicht

    Im echten Linux wartet tail -f auf neue Zeilen, bis du Strg+C drückst. Warten kann der Simulator nicht.

  • -F im Simulator noch nicht

    Im echten Linux wartet tail -f auf neue Zeilen, bis du Strg+C drückst. Warten kann der Simulator nicht.

  • --max-unchanged-stats braucht einen Wert im Simulator noch nicht

    Erklärung folgt

  • --pid braucht einen Wert im Simulator noch nicht

    Erklärung folgt

  • -q, --quiet, --silent im Simulator noch nicht

    Erklärung folgt

  • --retry im Simulator noch nicht

    Erklärung folgt

  • -s, --sleep-interval braucht einen Wert im Simulator noch nicht

    Erklärung folgt

  • -v, --verbose im Simulator noch nicht

    Erklärung folgt

  • -z, --zero-terminated im Simulator noch nicht

    Erklärung folgt

  • --version im Simulator noch nicht

    Im echten Linux zeigt die Option die Version des Programms.

Beispiele

Aus der Lektion In Dateien schauen: cat, less, head und tail
tail -n 3 projekte/webseite/server.log
08:27 GET /favicon.ico 404
08:29 GET /index.html 200
08:30 server stopped

Im Terminal ausprobieren

Aus der Lektion Logs lesen, ohne unterzugehen
tail -n 3 logs/app.log
09:41:02 INFO  request served in 84ms
09:41:09 ERROR db timeout after 5000ms
09:41:10 INFO  retry ok
head -n 2 logs/app.log
09:12:04 INFO  worker 1 started
09:12:04 INFO  worker 2 started

Im Terminal ausprobieren

Aus dem Befehl des Tages: tail -n
tail -n 2 logs/app.log
WARN slow response
ERROR payment failed

Im Terminal ausprobieren

Wo du ihn lernst

Lektionen

Befehl des Tages

Alle Befehle