Posted By

bionic on 12/09/10


Tagged

display Bash history logs


Versions (?)

Display last 10 lines of log


 / Published in: Bash
 

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

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

  1. tail error_log
  2.  
  3. //or for the last 15 or whatever lines
  4.  
  5. tail -15 error_log

Report this snippet  

You need to login to post a comment.