tail file linux code example
Example 1: tail lines file
With the flag -n | N, the tail command prints out the last N lines of file(s)
tail -n 7 file.txt #Prints first 7 lines of file.txt
Example 2: watch tail file linux
tail -n2 -f /var/log/apache2/access.log