Challenge - 5 Problems
ls Options Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What does
ls -l display?You run the command
ls -l in a directory. What kind of information will you see in the output?Attempts:
2 left
💡 Hint
Think about what the long format option means for file details.
✗ Incorrect
The
-l option shows a long listing format with detailed file information like permissions, owner, size, and modification date.💻 Command Output
intermediate2:00remaining
What is the effect of
ls -a?You run
ls -a in a directory. What will the output include?Attempts:
2 left
💡 Hint
Hidden files in Linux start with a dot.
✗ Incorrect
The
-a option shows all files including hidden ones (those starting with a dot), but does not add details.💻 Command Output
advanced2:00remaining
What does
ls -h do when combined with -l?You run
ls -lh. What difference does the -h option make in the output?Attempts:
2 left
💡 Hint
Think about how humans prefer to read file sizes.
✗ Incorrect
The
-h option makes file sizes easier to read by converting bytes into KB, MB, or GB.💻 Command Output
advanced2:00remaining
What is the output of
ls -R?You run
ls -R in a directory. What will the output show?Attempts:
2 left
💡 Hint
The
-R option means recursive.✗ Incorrect
The
-R option lists all files in the current directory and all subdirectories recursively.🧠 Conceptual
expert3:00remaining
Which
ls command combination shows all files recursively with human-readable sizes and detailed info?You want to see every file including hidden ones, in all subdirectories, with detailed info and sizes easy to read. Which command should you use?
Attempts:
2 left
💡 Hint
Order of options usually does not matter, but some combinations may cause errors or unexpected output.
✗ Incorrect
The correct combination is
ls -Ralh which means recursive (-R), all files including hidden (-a), long listing (-l), and human-readable sizes (-h).