Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the command to list all files and directories in the current folder.
Linux CLI
ls [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -l shows details but not hidden files.
Using -h is for human-readable sizes, not listing all files.
✗ Incorrect
The -a option shows all files, including hidden ones starting with a dot.
2fill in blank
mediumComplete the command to list files with detailed information.
Linux CLI
ls [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -a shows hidden files but not detailed info.
Using -r reverses order but doesn't show details.
✗ Incorrect
The -l option lists files with details like permissions, owner, size, and modification date.
3fill in blank
hardFix the error in the command to list files sorted by modification time.
Linux CLI
ls [1] Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -l shows details but does not sort by time.
Using -r reverses order but does not sort by time.
✗ Incorrect
The -t option sorts files by modification time, newest first.
4fill in blank
hardFill both blanks to list files with detailed info, sorted by time.
Linux CLI
ls [1] [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using -a instead of -l misses detailed info.
Using -r reverses order but doesn't sort by time.
✗ Incorrect
Use -l for details and -t to sort by modification time.
5fill in blank
hardFill all three blanks to list all files, detailed, in reversed order.
Linux CLI
ls [1] [2] [3]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Forgetting -a hides hidden files.
Using -t instead of -r does not reverse order.
✗ Incorrect
-a shows all files, -l shows details, and -r reverses the sort order.