As Linux small white, only learn a little bit to remember:
When deploying a server, it is often necessary to view the console output as if it were local, to be able to view log output overrides on Linux, and, of course, to have the logs displayed in real time in the Command window by command, which is useful for me that is used to Windows:
Tail Command:
function: The tail command is used to display the end lines of a text file.
examples are as follows:
Tail Example.txt Display the following 10 lines of the file example.txt;
tail-n example.txt Display the file example.txt the following 20 lines of content;
tail-f Example.txt Displays the following 10 lines of the file Example.txt and automatically displays the contents of the new file after the contents of the file have been increased.
tail-n 50-f Example.txt displays the following 50 lines of the file Example.txt and automatically displays the contents of the new file after the contents of the file have been increased.
Note:
The last command is useful, especially when you are monitoring log files, and you can always display new log information on the screen. Cure Shell Display Server Tomcat
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.
SSH Secure Shell displays server tomcat background content