Learning outcome 1
Write and execute simple scripts to automate system administration tasks.
Skill drills that assess this outcome
- CSCD240-E1-A-Q15 primary performance env-path Add /opt/tools/bin to PATH for the current shell.
- CSCD240-E1-A-Q20 primary performance background Execute firefox and allow the shell to be used for other activities.
- CSCD240-E1-A-Q25 primary performance alias Create alias ll for long listing with human-readable file sizes.
- CSCD240-E1-A-Q31 primary essay quoting var="Stu Steiner". A) echo "Hello $var" B) echo 'Hello $var'. Explain difference and output.
- CSCD240-E1-A-Q35 primary performance redir-stderr Send only stderr of "scan /etc/shadow" to errors.log; keep stdout on terminal.
- CSCD240-E1-A-Q36 primary performance redir-merge Send BOTH stdout and stderr of build.sh into build.log.
- CSCD240-E1-A-Q38 primary performance pipeline-distinct Count distinct lines in visitors.txt (unsorted input).
- CSCD240-E1-A-Q39 primary essay assignment A) FOO=bar B) FOO = bar. Which is valid? One-sentence explanation of the error.
- CSCD240-E1-A-Q43 primary performance history-expansion Forgot sudo on previous command. Re-run with sudo prepended without retyping.
- CSCD240-E1-A-Q44 primary short_answer history Bash keystroke that begins reverse-incremental history search.
- CSCD240-E1-A-Q45 primary performance command-substitution Print "Backup taken on <today>" using $(date +%Y-%m-%d) as the date.
- CSCD240-E1-A-Q46 primary performance env Display every environment variable currently defined in your shell.
- CSCD240-E1-B-Q15 primary performance redir Send only stderr of "scan /etc/shadow" to errors.log; leave stdout on terminal.
- CSCD240-E1-B-Q16 primary performance redir Send BOTH stdout and stderr of build.sh to build.log.
- CSCD240-E1-B-Q39 primary essay quoting var="Red Team". A) echo "Go $var" B) echo 'Go $var'. Output + explain difference.
- CSCD240-E1-B-Q40 primary essay assignment A) FOO=bar B) FOO = bar. Which valid; explain error.
- CSCD240-E1-B-Q41 primary performance command-subst Print "Backup taken on <today>" using $(date +%F).
- CSCD240-E1-B-Q42 primary performance env-path Append /opt/tools/bin to PATH for current shell.
- CSCD240-E1-B-Q43 primary performance shell-config Reload ~/.bashrc without opening a new terminal.
- CSCD240-E1-B-Q44 primary performance alias Alias lsm = ls -lah --sort=time.
- CSCD240-E1-B-Q47 primary performance history Re-run the previous command with sudo prepended without retyping.
- CSCD240-E1-B-Q48 primary short_answer history Bash keystroke to begin reverse-incremental history search.
- CSCD240-E1-C-Q05 primary multiple_choice redir Which redirection sends only stderr of a command to a file err.log?
- CSCD240-E1-C-Q09 primary multiple_choice quoting NAME=ops. echo '$NAME' prints what?
- CSCD240-E1-C-Q14 primary multiple_choice shell-config Reload ~/.bashrc in current shell without opening new terminal?
- CSCD240-E1-C-Q20 primary multiple_choice env Which single command displays the current value of PATH?
- CSCD240-E1-C-Q32 primary performance env-path Append /opt/ir/bin to PATH for current shell only.
- CSCD240-E1-C-Q34 primary performance alias Define alias mvi for mv -i (interactive prompt).
- CSCD240-E1-C-Q38 primary performance shell-compound Write the separator so both commands run regardless of success, then example date and hostname.
- CSCD240-E1-C-Q39 primary performance redir-merge Send BOTH stdout and stderr of make into merged.log (full example).
- CSCD240-E1-C-Q48 primary scenario bash-syntax ENV_VAR = "production" produced "ENV_VAR: command not found". Error + correction.
Other outcomes in CD-BSP
- CD-BSP-O2 Write and execute programs in a high-level language using basic programming constructs and concepts
- CD-BSP-O3 Write and execute simple linear and looping scripts.
- CD-BSP-O4 Write and execute simple and compound conditions within a programming language or similar environment (e.g., scripts, macros, SQL).
- CD-BSP-O5 Implement basic security practices in scripting, including bounds checking and input validation.
- CD-BSP-O6 Demonstrate conceptual understanding and practical use of regular programming or scripting expressions.