tail specific lines code example
Example 1: tail 100 lines
tail -100 > newLogfile
Example 2: 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
tail -100 > newLogfile
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