print the last 5 lines of access.log code example Example: tail 100 lines tail -100 <log file> > newLogfile