performance
easy
Apply
alias
2 points
Question 25. CSCD240-E1-A
Create alias ll for long listing with human-readable file sizes.
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
alias ll='ls -lah'
Acceptable alternatives: ["alias ll=\"ls -lah\"", "alias ll='ls -l -a -h'"]
Misconception bank
Each row below is a plausible wrong answer, the thinking that produces it, and the remedy that corrects the misconception. These are the foundation of the multiple-choice framing and the targeted feedback a student receives after answering.
alias ll = 'ls -lah'
Misconception. Whitespace around = is invalid in bash.
Remedy. Reinforce: NO spaces around = in any bash assignment.
alias ll='ls -l'
Misconception. Missing -a and -h; partial credit.
Remedy. Accept with deduction; note hidden files flag not included.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
IT-451 System Administrator
DCWF tasks:
T0063
NCAE errors:
SSH Login / failure: Failed to connect to host: IPSSH Login / partial: The following users failed t.SSH Login / partial: The following users failed t.
Course-artifact links
Lectures
- CSCD240-S26-L07. I/O redirection, aliases, source, .bashrc, env
Lab questions
- CSCD240-S26-LAB4: alias ll='ls -la'. Add it to ~/.bashrc. Show source ~/.bashrc.
CTF challenges
- 04 Environment & Patterns: Shortcut Maker