As a Linux little white, just learn a little bit to remember:
When deploying the server. It is often necessary to view the console output as a local, to be able to view the log output in Linux, and, of course, to have the log displayed in real time in a command form, which is useful for me accustomed to Windows:
Tail Command:
function: The tail command is used to display the end lines of a text file.
the scale is as follows:
Tail Example.txt Display the following 10 lines of the file example.txt;
tail-n Example.txt Displays the following 20 lines of the file example.txt.
tail-f Example.txt Displays the following 10 lines of file Example.txt and after the file contents have been added. Self-actively display the new file content.
tail -n 50 -f example.txt Show file example.txt The following 50 lines of content and after the contents of the file is added, you can actively display the new file content.
Attention:
The last commandment is very practical. Especially when monitoring log files. The ability to always display new log information on the screen. Cure Shell Display Servertomcat
SSH Secure Shell displays servertomcat background content