# tail ## General ### See updates to log files as they roll in: - `tail -f` ### How to do a `tail -f` of log rotated files? https://unix.stackexchange.com/questions/22698/how-to-do-a-tail-f-of-log-rotated-files Use `tail -F` instead. The `-F` option tells `tail` to track changes to the file by filename, instead of using the inode number which changes during rotation. It will also keep trying to open the file if it's not present. ### Filter [[tail]] log outputs with [[ripgrep]] ```bash tail -n 20 -f log/daemon_rCURRENT.log | rg INFO ```