performance
medium
Apply
command-subst
2 points
Question 41. CSCD240-E1-B
Print "Backup taken on <today>" using $(date +%F).
Work the drill
Answer on paper or in a terminal before revealing the ideal answer.
Ideal answer
echo "Backup taken on $(date +%F)"
Acceptable alternatives: ["echo \"Backup taken on `date +%F`\""]
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.
echo 'Backup taken on $(date +%F)'
Misconception. Single quotes suppress substitution.
Remedy. Double quotes required.
Authority mappings
Hover any chip for the mapping justification; click to open the authority record.
DCWF roles:
SE-627 DevSecOps Specialist
DCWF tasks:
T0498
KU topics:
CD-BSP-T8a
Course-artifact links
Lectures
- CSCD240-S26-L05. Permissions part 1: ls -l anatomy, rwx, file types
Lab questions
- CSCD240-S26-LAB5: Use $(date +%F) inside a string. Also demonstrate backticks.
CTF challenges
- 04 Environment & Patterns: Capture the Output