tail command to get last 10 lines code example Example: tail 100 lines tail -100 <log file> > newLogfile