linux 视图工具_Linux上日志文件的“实时”视图

linux 视图工具

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 视图工具

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值