Bird
0
0

What is the correct way to run the command cat /var/log/syslog with sudo?

easy📝 Syntax Q3 of 15
Linux CLI - Users and Groups
What is the correct way to run the command cat /var/log/syslog with sudo?
Acat /var/log/syslog sudo
Bcat sudo /var/log/syslog
Csudo -c cat /var/log/syslog
Dsudo cat /var/log/syslog
Step-by-Step Solution
Solution:
  1. Step 1: Identify sudo syntax

    The correct syntax is sudo [command].
  2. Step 2: Apply to the given command

    Prepend sudo directly before the command: sudo cat /var/log/syslog.
  3. Final Answer:

    sudo cat /var/log/syslog -> Option D
  4. Quick Check:

    sudo precedes the command to run it elevated [OK]
Quick Trick: sudo always comes before the command [OK]
Common Mistakes:
  • Placing sudo after the command
  • Using incorrect sudo options like -c
  • Inserting sudo in the middle of the command

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes