Home > Operation and Maintenance > Linux Operation and Maintenance > How to view log commands in Linux in real time

How to view log commands in Linux in real time

coldplay.xixi
Release: 2020-08-29 11:37:24
Original
15362 people have browsed it

How to view the log command in Linux in real time: To view a file or a log file, usually use [more xx.log] or cat to view it. If you need to view the running log in real time, use the tail command to view it. The code is: [tail -f xx.log].

How to view log commands in Linux in real time

[Related article recommendations: linux tutorial]

How to view the log command in Linux in real time:

To view a file or a log file, we usually use more xx.log or cat to view it. However, sometimes we need to view it in real time. Running log, we can use the tail command to view it at this time.

The command is as follows:

tail -f xx.log
Copy after login

View the effect:

How to view log commands in Linux in real time

##Related learning recommendations:

linux video tutorial

The above is the detailed content of How to view log commands in Linux in real time. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template