Ubuntu – option like TAIL to keep track of WHOLE file

tail

tail -f will update the file once new data is inserted , but if the whole file is being rewritten it will give an error .

is there any other option to keep reloading the whole file ?

Thank you

Best Answer

man tail gives :

tail -F or tail --follow=name --retry to keep tail watching file even if all the file is rewritten.

Related Question