many times i was in need to a command or program reading log file and continue read any new updates to that file.
finally i found the command tail, this command by default reads a files and outputs the last 10 lines to the screen, but if u passed the option -f the command will not terminate after display the file content but will stay prints any updates happens to that file.
by this way i open a terminal window and tail the file and all logs will stays prints to my screen.
thanks for tail and for linux.

$ tail -f filename

Advertisements