$ tail -f testfile
the command is supposed to show the latest entries in the specified file, in real-time right? But that's not happening. Please correct me, if what I intend it to do is wrong...
I created a new file "aaa" and added a line of text and closed it. then issued this command (first line):
$ tail -f aaa
xxx
xxa
axx
the last three lines are the contents of the file aaa. Now that the command is still running (since I used -f
), I opened the file aaa via the GUI and started adding a few more lines manually. But the terminal doesn't show the new lines added in the file.
What's wrong here? The tail -f
command only shows new entries if they are written by system only? (like log files etc)
$ tail -F filename
command all the time instead of$ tail -f filename
right? – its_me Aug 15 '11 at 02:18lsof
can show this happening - for examplelsof -Fpcftni
would show that the inode being followed bytail
is no longer the same one that the editor has open. – Aaron D. Marasco Aug 15 '11 at 08:58