There is most basic but powerful use of linux “tail”
command. I mostly use this command to see the log files which are
constantly growing.
>tail -100f catalina.out
The above use provides me a way to keep an eye on catalina.out file while it is getting updated constantly during the tomcat server start up. It always shows me last 100 lines in the catalina.out. To come out of the log view one should press CTRL+C.
The above command can be used to see the last specified number of lines of log files or any file which are getting updated by any other process.
>tail -100f catalina.out
The above use provides me a way to keep an eye on catalina.out file while it is getting updated constantly during the tomcat server start up. It always shows me last 100 lines in the catalina.out. To come out of the log view one should press CTRL+C.
The above command can be used to see the last specified number of lines of log files or any file which are getting updated by any other process.
No comments:
Post a Comment