Bird
0
0

What does the ls -h option do when listing files in Linux?

easy📝 Conceptual Q1 of 15
Linux CLI - Navigating the File System
What does the ls -h option do when listing files in Linux?
ADisplays detailed file information in long format
BLists all files including hidden ones
CLists files recursively in all subdirectories
DShows file sizes in a human-readable format like KB, MB
Step-by-Step Solution
Solution:
  1. Step 1: Understand the purpose of the -h option

    The -h option stands for human-readable sizes, converting bytes into KB, MB, etc.
  2. Step 2: Compare with other options

    Options like -a show hidden files, -R lists recursively, and -l shows detailed info, so they don't match -h.
  3. Final Answer:

    Shows file sizes in a human-readable format like KB, MB -> Option D
  4. Quick Check:

    ls -h = human-readable sizes [OK]
Quick Trick: Use -h to read file sizes easily [OK]
Common Mistakes:
MISTAKES
  • Confusing -h with -a or -l
  • Thinking -h lists hidden files
  • Assuming -h lists recursively

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes