Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I am seeing several seconds delay with the tail command. I found the cause for it has something to do with nfs services. I am using arch linux and yet to find out how to disable all these services

I have searched and had some indication that other tools will not be effected such as cat so what can give equivalent results to tail -f

share|improve this question

2 Answers 2

up vote 4 down vote accepted

Functionally equivalents to tail -f are

less +F

and where available

tailf
share|improve this answer
    
Thanks for telling about less +F. Seems very helpful when used with screen. –  rozcietrzewiacz Sep 30 '11 at 22:18
    
thank, those are the same results however delay remains. My resolution seems to be to remove nfs –  veccy Sep 30 '11 at 22:37

The delay is likely due to buffering of the data.

tail (from the man page) checks for updates every second (changeable with '-s' or '--sleep-interval'), which can cause a perceptible delay.

tailf accesses files without causing a corresponding atime update (access time), which could introduce delays.

And less... as always, less is more!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.