tail

tail#

是一个常用的命令行工具,用于显示文件的末尾部分。

# 查看指定文件的最后10行内容  
tail -n 10 /www/wwwlogs/logfile.log  
# 实时更新日志文件  
tail -f /path/to/your/logfile.log