Hi

*T*he most interesting and useful command used is *tail* in *unix*. As the
name indicate its duty is to show the last lines of a particular file. When
take the case of log files such as error logs, always we have to know the
last lines or last updations instead of reading from top to bottom or search
a full text file.

for its option try this tail –help

*tail* -n 10 error.log

shows last 10 lines of error.log

The very interesting option is -f , means open the file and follow the last
lines.

This is very useful for debugging purpose. For example if you want to check
error.log lively, use this option

*tail* -f error.log

it displays last lines and also automatically updates when any changes
happens in error.log file. So you can check other operation by tailing and
following a particular file .

Try today itself. You will be very much interested, thats my guarantee [image:
:)]

(There is also a similar function 'head', you can guess what its use, google
it for more)





[taken from http://www.sajithmr.com/tail/ ]



regrds tismon

--~--~---------~--~----~------------~-------~--~----~
"Freedom is the only law". 
"Freedom Unplugged"
http://www.ilug-tvm.org

You received this message because you are subscribed to the Google
Groups "ilug-tvm" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]

For details visit the website: www.ilug-tvm.org or the google group page: 
http://groups.google.com/group/ilug-tvm?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to