简体   繁体   English

监控屏幕上的运行日志

[英]Monitor going logs on the screen

Is there a linux command which I can use to monitor a log file? 我可以使用Linux命令监视日志文件吗? For example there is a command top and when I execute it I can see the recent changes of CPU usage, Memory usage and so on. 例如,有一个命令top ,当我执行它时,我可以看到CPU使用率,内存使用率等的最新变化。 Is there some similar command to use to watch the changes of some log file? 是否有一些类似的命令可用于监视某些日志文件的更改?

I can use tail -500 myFile.log , but every time I have to execute it to see the recent changes. 我可以使用tail -500 myFile.log ,但是每次必须执行它才能查看最近的更改。

Use 采用

tail -f myFile.log

I need to supply more text, but I don't really know what else to write, so I'm just typing random garbage here. 我需要提供更多文本,但是我真的不知道还要写些什么,所以我只是在这里输入随机垃圾。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM