To view only the last 3 lines of a file and keep the display limited to those lines, you can use a combination of tail and watch. Here's how you can do it:
watch -n 1 'tail -n 3 system.log'
This command will refresh every second (-n 1) and display only the last 3 lines of system.log. You can adjust the refresh interval by changing the number after -n.
