Bird
0
0

Which of the following is the correct syntax to view the file data.log using less?

easy📝 Syntax Q3 of 15
Linux CLI - Viewing and Editing Files
Which of the following is the correct syntax to view the file data.log using less?
Aless data.log
Bless -f data.log
Cless > data.log
Dless < data.log
Step-by-Step Solution
Solution:
  1. Step 1: Understand basic less syntax

    The basic syntax to view a file is less filename.
  2. Step 2: Analyze options and redirections

    -f forces opening non-regular files but is not required here; redirections > and < are incorrect for viewing files with less.
  3. Final Answer:

    less data.log -> Option A
  4. Quick Check:

    Correct syntax = less filename [OK]
Quick Trick: Use 'less filename' to open files simply [OK]
Common Mistakes:
MISTAKES
  • Using redirection symbols incorrectly
  • Adding unnecessary options
  • Confusing input/output redirection
  • Using wrong command syntax

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes