Multiple choice technology programming languages

In which scenario ,tail is being used for real time log file monitoring?

  1. tail -r logfile

  2. tail -n 5 logfile

  3. tail -f logfile

  4. tail -x logfile

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The tail -f command follows the file growth in real-time, making it ideal for monitoring active log files. The other options, like -n 5 (displays only the last 5 lines once) or -r (reverses output), do not support continuous, real-time updates.