tail
命令可用于查看文件的内容,通常用来查看日志,加上-f
参数就可以查看最新的日志并且不断刷新。
tail [参数] [文件]
实时查看jenkins
的日志
# tail -f /var/log/jenkins/jenkins.log
Please use the following password to proceed to installation:
600ef7d47db54ff2bfc518a6c2f2a857
This may also be found at: /var/lib/jenkins/secrets/initialAdminPassword
*************************************************************
*************************************************************
*************************************************************
2020-06-07 14:10:31.384+0000 [id=44] INFO h.m.DownloadService$Downloadable#load: Obtained the updated data file for hudson.tasks.Maven.MavenInstaller
2020-06-07 14:10:31.385+0000 [id=44] INFO hudson.util.Retrier#start: Performed the action check updates server successfully at the attempt #1
2020-06-07 14:10:31.390+0000 [id=44] INFO hudson.model.AsyncPeriodicWork#lambda$doRun$0: Finished Download metadata. 739,411 ms
原文:https://www.cnblogs.com/ricklz/p/13062633.html