Linux/Unix Watch command

Got a log file? Want to have a nearly-live stream of it into a console window? Simples.

# watch tail -n30 server.log

Change 30, to however many lines you want to show, and Server.log to the file you want to view. By default watch updates every 2 seconds.

Share

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">