Useful commands:
View the tomcat running log |
tail -f catalina.out |
View logs by keyword search |
cat jeewx-2015-09-20.log | grep verification code |
View Fixed Time Logs |
cat jeewx-2015-09-20.log | grep '2015-09-20 18:50:15' |
View the last 50 lines of log |
tail -n 50 -f catalina.out |
Summary of Linux view log commands:
cat |
show entire file |
tail |
The tail command is used to display the last few lines of a text file |
head |
View from the head of a text file, the head command is used to view the beginning of a text file |
more |
View logs as a percentage |
less |
Similar to the more function, except that less supports flipping through files before and after |