Track Content of File

Track the content of a log file

See the contents of a file in real time

watch cat log.txt

Although this command does the job, it is not the best option. You can use the tail command with the -f option to track only the new lines that are appended to the file,