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].
[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
View the effect:
##Related learning recommendations:
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!