2015-03-31 24 views
4

我尝试显示文本文件的尾部。如果文件很小,则没有区别。但是,如果文件太大(〜5 gB),tailf不响应。另一方面尾-f工作正常。他们之间有什么不同?unix中tail -f和tailf有什么区别?

+0

阅读'tailf'手册页,它解释了与'tail -f'不同的地方。听起来你的'tailf'程序不是64位的。 – Barmar 2015-03-31 07:55:24

回答

1

从手册页:

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. 

http://linuxcommand.org/man_pages/tailf1.html

如果doensn't访问该文件,直接将有非常拉赫文件的一些困难,这取决于你的机器安装。