Bird
0
0

What does the command tail -f /var/log/syslog do?

easy📝 Conceptual Q11 of 15
Linux CLI - Viewing and Editing Files
What does the command tail -f /var/log/syslog do?
ACopies the syslog file to another location
BDeletes the syslog file permanently
CShows the last lines of the syslog file and updates live as new lines are added
DShows the first lines of the syslog file only once
Step-by-Step Solution
Solution:
  1. Step 1: Understand the tail command

    The tail command shows the last part of a file.
  2. Step 2: Understand the -f option

    The -f option makes tail keep running and show new lines as they are added to the file.
  3. Final Answer:

    Shows the last lines of the syslog file and updates live as new lines are added -> Option C
  4. Quick Check:

    tail -f = live log monitoring [OK]
Quick Trick: Remember: -f means follow new lines live [OK]
Common Mistakes:
  • Thinking tail -f deletes or copies files
  • Confusing tail with head
  • Expecting tail -f to show the start of the file

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes