Forrest logo
back to the tail tool

tail:tldr:5aeb0

tail: Keep reading file until `Ctrl + C`, even if the file is inaccessible.
$ tail -F ${filename}
try on your machine

The command tail -F ${filename} is used to display the last 10 lines of a file and continue to track and display any new additions to that file in real-time. Here's a breakdown of the command:

  • tail: It is a command-line utility in Unix-like operating systems that is used to display the end (tail) of a file.
  • -F: It is an option used with the tail command that signifies following the file by name instead of using file descriptor.
  • ${filename}: It is a placeholder for the actual filename that you want to monitor.

In summary, tail -F ${filename} is used to continuously monitor a file and display its last 10 lines, while also displaying any new lines that are added to that file in real-time.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the tail tool