Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create an alias named ll that lists files in long format.
Linux CLI
alias ll='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 long format.Using
-h shows sizes in human-readable form but needs -l for details.✗ Incorrect
The
-l option with ls shows files in long listing format.2fill in blank
mediumComplete the alias to clear the terminal screen using the clear command.
Linux CLI
alias cls='[1]'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
cls works in Windows but not in Linux.Using
reset clears and resets terminal but is different.✗ Incorrect
The
clear command clears the terminal screen.3fill in blank
hardFix the error in the alias that should show disk usage in human-readable form.
Linux CLI
alias disk='du -[1]h'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
-s summarizes but does not format sizes.Using
-c adds totals but no human-readable sizes.✗ Incorrect
The
-h option shows sizes in human-readable format for du.4fill in blank
hardFill both blanks to create an alias gs that runs git status.
Linux CLI
alias gs='git [1] [2]'
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using
commit runs a different command.Using
-v shows verbose output, not short status.✗ Incorrect
The alias runs
git status -s for a short status summary.5fill in blank
hardFill all three blanks to create an alias llh that lists files long format with human-readable sizes and shows hidden files.
Linux CLI
alias llh='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
-r reverses order but is not needed here.✗ Incorrect
The alias uses
-l for long format, -a to show hidden files, and -h for human-readable sizes.