Linux under tail command

Source: Internet
Author: User

Brief IntroductionThe Tail command writes the file to standard output from the specified point and uses the "-f" option of the tail command to easily view the log file that is being changed, and "Tail-f filename" will display the top-most contents of the filename on the screen and constantly refresh, You can see the latest file content. 1. Command Formattail[necessary parameters [selection parameters] [file]2. Command functionused to display the content at the end of the specified file, and is processed as input when the file is not specified. Common view log files. 3. Command Parameters- F: Loop read- Q: Do not display processing information-V: Displays detailed processing informationnumber of-c<;: Number of bytes displayed-n< rows;: Displays the number of rows4. Example1) Display the end of the file:tail-n 5 Log.log2) Start displaying the file from line 5th:tail-n +5 Log.log3) cycle through the contents of the file:tail-f Log.log

Linux under tail command

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.