
linux 视图工具
This approach works for any linux operating system, including Ubuntu, and is probably most often used in conjunction with web development work.
这种方法适用于任何Linux操作系统,包括Ubuntu,并且可能最常与Web开发工作结合使用。
tail -f /path/thefile.log
尾巴-f /path/thefile.log
This will give you a scrolling view of the logfile. As new lines are added to the end, they will show up in your console screen.
这将为您提供日志文件的滚动视图。 当新行添加到末尾时,它们将显示在控制台屏幕中。
For Ruby on Rails, for instance, you can view the development logfile by running the command from your project directory:
例如,对于Ruby on Rails,可以通过从项目目录运行命令来查看开发日志文件:
tail -f log/development.log
tail -f日志/development.log
As with all linux apps, Ctrl+C will stop it.
与所有linux应用程序一样,Ctrl + C将停止它。
翻译自: https://www.howtogeek.com/howto/ubuntu/a-live-view-of-a-logfile-on-linux/
linux 视图工具