This article is a mirror article of machine translation, please click here to jump to the original article.

View: 12979|Reply: 0

[linux] Linux tail outputs the last few lines of the file

[Copy link]
Posted on 7/8/2015 11:50:43 PM | | |

Linux tail outputs the last few lines of the file

tail: The last few lines of the output file.

Usage:

1.  tail filename

      Outputs the contents of the last 10 lines of the file

2.  tail -n 5 filename

     Output the contents of the last 5 lines of the file

3.  tail -F filename

     Monitor file changes and display them as soon as there is a change in the file.




Previous:Install the TCPTRACK monitoring network card or designated port on the centOS system
Next:. .NET Cross-Platform: Compile dnx on CentOS and run ASP.NET 5 sample programs
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com