linux get last 1000 lines of a file code example Example: tail 100 lines tail -100 <log file> > newLogfile