Display last 10 lines of log


/ Published in: Bash
Save to your folder(s)

Handy, especially when you have large logs and you want to see what just happened


Copy this code and paste it in your HTML
  1. tail error_log
  2.  
  3. //or for the last 15 or whatever lines
  4.  
  5. tail -15 error_log

URL: http://www.wallpaperama.com/forums/how-to-display-show-get-last-10-lines-from-a-file-in-linux-shell-command-t915.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.