Chinaunix首页 | 论坛 | 博客
  • 博客访问: 482204
  • 博文数量: 108
  • 博客积分: 25
  • 博客等级: 民兵
  • 技术积分: 1134
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-29 19:43
文章分类

全部博文(108)

文章存档

2016年(10)

2015年(9)

2014年(73)

2013年(16)

我的朋友

分类: LINUX

2014-08-13 12:00:02


点击(此处)折叠或打开

  1. TAILF(1) Linux Programmer’s Manual TAILF(1)
  2. NAME
  3. tailf - follow the growth of a log file
  4. SYNOPSIS
  5. tailf [OPTION] file
  6. DESCRIPTION
  7. tailf will print out the last 10 lines of a file and then wait for the file to grow. It is similar to tail -f but does not access the file when it is not growing. This has the side effect of not updating the access time for the file, so a filesystem flush does not occur periodi-cally when no log activity is happening.
  8. ##tailf的优点是如果文件不增长的话,它不修改文件的访问时间。同时也有一定的负面作用即不更新文件的访问时间,因此如果没有活动的日志的话,文件系统是不会将其flush到硬盘上。
  9. tailf is extremely useful for monitoring log files on a laptop when logging is infrequent and the user desires that the hard disk spin down to conserve battery life.Mandatory arguments to long options are mandatory for short options too.
  10. -n, --lines N, -N
  11. output the last N lines, instead of the last 10.
  12. AUTHOR
  13. This program was originally written by Rik Faith (faith@acm.org) and may be freely distributed under the terms of the X11/MIT License. There is ABSOLUTELY NO WARRANTY for this program.
  14. The latest inotify based implementation was written by Karel Zak (kzak@redhat.com).
  15. SEE ALSO
  16. tail(1), less(1)
  17. AVAILABILITY
  18. The tailf command is part of the util-linux-ng package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux-ng/.

阅读(1485) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~