Recall & Review
beginner
What does the
ls command do in Linux?The
ls command lists files and directories in the current folder or a specified path.Click to reveal answer
beginner
How do you list all files, including hidden ones, using
ls?Use
ls -a to show all files, including those starting with a dot (hidden files).Click to reveal answer
beginner
What does the
-l option do with ls?The
-l option shows a detailed list with permissions, owner, size, and modification date.Click to reveal answer
intermediate
How can you list files sorted by modification time using
ls?Use
ls -lt to list files sorted by modification time, newest first.Click to reveal answer
intermediate
What does
ls -R do?The
-R option lists directories and their contents recursively, showing all nested files and folders.Click to reveal answer
Which
ls option shows hidden files?✗ Incorrect
The
-a option includes hidden files (those starting with a dot).What does
ls -l display?✗ Incorrect
-l shows detailed information about files and directories.How do you list files sorted by modification time, newest first?
✗ Incorrect
ls -lt sorts files by modification time, newest first.Which command lists all files and directories inside subfolders too?
✗ Incorrect
ls -R lists contents recursively inside all subdirectories.What does the plain
ls command show by default?✗ Incorrect
Plain
ls lists files and directories except hidden ones.Explain how to use
ls to see detailed info about all files, including hidden ones.Combine options to get detailed and hidden files listed.
You got /5 concepts.
Describe how to list files recursively in all subdirectories using
ls.Think about how to see inside folders inside folders.
You got /4 concepts.