Bird
0
0

Which of these is the correct syntax to list files sorted by modification time in descending order?

easy📝 Syntax Q3 of 15
Linux CLI - Navigating the File System
Which of these is the correct syntax to list files sorted by modification time in descending order?
Als -t
Bls -lt
Cls -r
Dls -ltr
Step-by-Step Solution
Solution:
  1. Step 1: Understand sorting by modification time

    The -t option sorts files by modification time, newest first.
  2. Step 2: Combine with -l for detailed listing

    ls -lt lists files with details sorted by time descending.
  3. Final Answer:

    ls -lt -> Option B
  4. Quick Check:

    ls -lt = Detailed, sorted by time desc [OK]
Quick Trick: Use -lt to list detailed files sorted by newest first [OK]
Common Mistakes:
MISTAKES
  • Using -r alone reverses order but no sort
  • Confusing -t with -r
  • Using -ltr reverses order ascending

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes