how to print the last 100 lines in linux code example Example: tail 100 lines tail -100 <log file> > newLogfile