0
0
Linux CLIscripting~10 mins

ls options (-l, -a, -h, -R) in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to list all files including hidden ones.

Linux CLI
ls [1]
Drag options to blanks, or click blank then click option'
A-a
B-l
C-h
D-R
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-l' shows details but not hidden files.
Using '-h' is for human-readable sizes, not hidden files.
Using '-R' lists directories recursively, not hidden files.
2fill in blank
medium

Complete the command to list files with detailed information.

Linux CLI
ls [1]
Drag options to blanks, or click blank then click option'
A-a
B-l
C-h
D-R
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-a' shows hidden files but not details.
Using '-h' changes size format but needs '-l' to show details.
Using '-R' lists directories recursively, not detailed info.
3fill in blank
hard

Fix the error in the command to list files with human-readable sizes.

Linux CLI
ls -l [1]
Drag options to blanks, or click blank then click option'
A-h
B-l
C-R
D-a
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-a' shows hidden files but not size format.
Using '-R' lists directories recursively, unrelated to size format.
Using '-l' again is redundant.
4fill in blank
hard

Fill both blanks to list all files recursively with details.

Linux CLI
ls [1] [2]
Drag options to blanks, or click blank then click option'
A-l
B-a
C-R
D-h
Attempts:
3 left
💡 Hint
Common Mistakes
Using '-a' instead of '-R' lists hidden files but not recursively.
Using '-h' changes size format but does not list recursively.
5fill in blank
hard

Fill all three blanks to list all files with details and human-readable sizes.

Linux CLI
ls [1] [2] [3]
Drag options to blanks, or click blank then click option'
A-a
B-l
C-h
D-R
Attempts:
3 left
💡 Hint
Common Mistakes
Omitting '-a' hides hidden files.
Omitting '-h' shows sizes in bytes only.
Using '-R' is not needed here.