Error[8]: Undefined offset: 5, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述Linux命令-tail 命令分析 命令格式 参数 例子 Linux命令-tail 命令分析 tail命令可用于查看文件的内容,通常用来查看日志,加上-f参数就可以查看最新的日志并且不断刷新。 命令格 Linux命令-tail命令分析命令格式参数例子linux命令-tail命令分析

tail命令可用于查看文件的内容,通常用来查看日志,加上-f参数就可以查看最新的日志并且不断刷新。

命令格式
tail [参数] [文件]  
参数-f 循环读取-q 不显示处理信息-v 显示详细的处理信息-c<数目> 显示的字节数-n<行数> 显示文件的尾部 n 行内容--pID=PID 与-f合用,表示在进程ID,PID死掉之后结束-q,--quIEt,--silent 从不输出给出文件名的首部-s,--sleep-interval=S 与-f合用,表示在每次反复的间隔休眠S秒例子

实时查看jenkins的日志

# tail -f /var/log/jenkins/jenkins.log2020-06-08 00:34:16.777+0000 [ID=27]	INFO	o.s.c.s.AbstractApplicationContext#obtainFreshbeanfactory: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@67401a8e]: org.springframework.beans.factory.support.Defaultlistablebeanfactory@4eb5cf662020-06-08 00:34:16.779+0000 [ID=27]	INFO	o.s.b.f.s.Defaultlistablebeanfactory#preInstantiateSingletons: Pre-instantiating singletons in org.springframework.beans.factory.support.Defaultlistablebeanfactory@4eb5cf66: defining beans [filter,legacy]; root of factory hIErarchy2020-06-08 00:34:17.027+0000 [ID=27]	INFO	jenkins.InitReactorRunner#onAttained: Completed initialization2020-06-08 00:34:17.111+0000 [ID=20]	INFO	hudson.WebAppMain#run: Jenkins is fully up and running2020-06-08 00:34:51.566+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller2020-06-08 00:34:52.639+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller2020-06-08 00:34:53.453+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Ant.AntInstaller2020-06-08 00:34:55.783+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tools.JDKInstaller2020-06-08 00:34:55.783+0000 [ID=41]	INFO	hudson.util.RetrIEr#start: Performed the action check updates server successfully at the attempt #12020-06-08 00:34:55.787+0000 [ID=41]	INFO	hudson.model.AsyncPeriodicWork#lambda$doRun[+++]: Finished Download Metadata. 42,704 ms
总结

以上是内存溢出为你收集整理的Linux命令-tail命令全部内容,希望文章能够帮你解决Linux命令-tail命令所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 166, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
Linux命令-tail命令_系统运维_内存溢出

Linux命令-tail命令

Linux命令-tail命令,第1张

概述Linux命令-tail 命令分析 命令格式 参数 例子 Linux命令-tail 命令分析 tail命令可用于查看文件的内容,通常用来查看日志,加上-f参数就可以查看最新的日志并且不断刷新。 命令格 Linux命令-tail命令分析命令格式参数例子linux命令-tail命令分析

tail命令可用于查看文件的内容,通常用来查看日志,加上-f参数就可以查看最新的日志并且不断刷新。

命令格式
tail [参数] [文件]  
参数-f 循环读取-q 不显示处理信息-v 显示详细的处理信息-c<数目> 显示的字节数-n<行数> 显示文件的尾部 n 行内容--pID=PID 与-f合用,表示在进程ID,PID死掉之后结束-q,--quIEt,--silent 从不输出给出文件名的首部-s,--sleep-interval=S 与-f合用,表示在每次反复的间隔休眠S秒例子

实时查看jenkins的日志

# tail -f /var/log/jenkins/jenkins.log2020-06-08 00:34:16.777+0000 [ID=27]	INFO	o.s.c.s.AbstractApplicationContext#obtainFreshbeanfactory: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@67401a8e]: org.springframework.beans.factory.support.Defaultlistablebeanfactory@4eb5cf662020-06-08 00:34:16.779+0000 [ID=27]	INFO	o.s.b.f.s.Defaultlistablebeanfactory#preInstantiateSingletons: Pre-instantiating singletons in org.springframework.beans.factory.support.Defaultlistablebeanfactory@4eb5cf66: defining beans [filter,legacy]; root of factory hIErarchy2020-06-08 00:34:17.027+0000 [ID=27]	INFO	jenkins.InitReactorRunner#onAttained: Completed initialization2020-06-08 00:34:17.111+0000 [ID=20]	INFO	hudson.WebAppMain#run: Jenkins is fully up and running2020-06-08 00:34:51.566+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller2020-06-08 00:34:52.639+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.plugins.gradle.GradleInstaller2020-06-08 00:34:53.453+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Ant.AntInstaller2020-06-08 00:34:55.783+0000 [ID=41]	INFO	h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tools.JDKInstaller2020-06-08 00:34:55.783+0000 [ID=41]	INFO	hudson.util.RetrIEr#start: Performed the action check updates server successfully at the attempt #12020-06-08 00:34:55.787+0000 [ID=41]	INFO	hudson.model.AsyncPeriodicWork#lambda$doRun: Finished Download Metadata. 42,704 ms
总结

以上是内存溢出为你收集整理的Linux命令-tail命令全部内容,希望文章能够帮你解决Linux命令-tail命令所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://www.outofmemory.cn/yw/1014164.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-22
下一篇 2022-05-22

发表评论

登录后才能评论

评论列表(0条)

保存