Linux CLI - Viewing and Editing Files
Why does
tail -f sometimes fail to show new log entries after log rotation?tail -f sometimes fail to show new log entries after log rotation?tail -f tracks filestail -f follows the file descriptor (inode), not the filename.tail -f keeps watching the old file descriptor, missing new entries.tail -f follows descriptor, breaks on rotation = Because it follows the file descriptor, not the filename, so it watches the old file [OK]tail -f [OK]tail -f reads once and exits15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions