Using SSH you can look at the last lines of a file in a Linux environment. This can be done using the Linux tail command. In this article, we’ll show the basic usage of tail and how to use it with SSH.
tail myTextFile.txt
Here you should replace n with the number of lines you wish to see
tail -n myTextFile.txt
This will make tail refresh and display any changes made to the file. It’s useful when watching logs, waiting for an event to occur
tail -F myTextFile.txt
Now is the right time to test your Linux knowledge on a Dedicated Server or an SSD VPS machine. Learn new SSH Commands or master your skills with the Linux tail command now!