Home > OS >  Tail -f and tail -f and tailf difference
Tail -f and tail -f and tailf difference

Time:10-08

Tail -f is equivalent to - follow=descriptor, according to the file descriptor for tracking, when the file is renamed or deleted, track stop

Tail -f is equivalent to - follow=name - retry, according to the file name, and keep the retry, namely the file to be deleted or renamed, if again to create the same file name, will continue to track

Tailf equates to tail -f -n 10 (looks like the tail -f or -f is printing the last 10 lines by default, then tracking files), and the tail -f, if the file does not increase, it won't go to access disk files, so tailf is especially suitable for the portable machine trace log file, because it reduces the disk access, can save electricity

  • Related