SSH Secure Shell displays servertomcat background content

Source: Internet
Author: User
Tags ssh secure shell

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.