Bird
0
0

What will be the output of ls -lR in a directory with two subfolders, each containing files?

medium📝 Command Output Q13 of 15
Linux CLI - Navigating the File System
What will be the output of ls -lR in a directory with two subfolders, each containing files?
ALists files in current directory only
BShows file sizes in human-readable format
CLists files with details in current and all subdirectories
DLists hidden files only
Step-by-Step Solution
Solution:
  1. Step 1: Understand -lR options

    -l lists files with details, and -R lists recursively through all subdirectories.
  2. Step 2: Predict output behavior

    The command will show detailed info for files in the current directory and all files in subfolders recursively.
  3. Final Answer:

    Lists files with details in current and all subdirectories -> Option C
  4. Quick Check:

    -lR = detailed + recursive listing [OK]
Quick Trick: Remember -R means recursive, -l means detailed [OK]
Common Mistakes:
MISTAKES
  • Thinking -R lists hidden files only
  • Assuming -lR shows human-readable sizes
  • Believing it lists only current directory

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes