T0498
Monitor and maintain system/server configuration.
Skill drills that exercise this task
- CSCD240-E1-A-Q01 pwd is /home/ssteiner/labs/lab1; home is /home/ssteiner. For each cd, show pwd after. Assume return to starting pwd.
- CSCD240-E1-A-Q02 Give a single command that does a long listing of the current directory and scrolls the output one page at a time.
- CSCD240-E1-A-Q03 Cause executable grader to run with stdout redirected to report.txt. pwd is part of PATH.
- CSCD240-E1-A-Q28 Files: data, data1, data12, data2. Display only data1 and data12 via ls.
- CSCD240-E1-A-Q31 var="Stu Steiner". A) echo "Hello $var" B) echo 'Hello $var'. Explain difference and output.
- CSCD240-E1-A-Q35 Send only stderr of "scan /etc/shadow" to errors.log; keep stdout on terminal.
- CSCD240-E1-A-Q36 Send BOTH stdout and stderr of build.sh into build.log.
- CSCD240-E1-A-Q39 A) FOO=bar B) FOO = bar. Which is valid? One-sentence explanation of the error.
- CSCD240-E1-A-Q40 sort data.txt > data.txt — what happens to data.txt and why?
- CSCD240-E1-A-Q45 Print "Backup taken on <today>" using $(date +%Y-%m-%d) as the date.
- CSCD240-E1-A-Q46 Display every environment variable currently defined in your shell.
- CSCD240-E1-B-Q15 Send only stderr of "scan /etc/shadow" to errors.log; leave stdout on terminal.
- CSCD240-E1-B-Q16 Send BOTH stdout and stderr of build.sh to build.log.
- CSCD240-E1-B-Q17 sort auth.log > auth.log — what happens, one-sentence why?
- CSCD240-E1-B-Q39 var="Red Team". A) echo "Go $var" B) echo 'Go $var'. Output + explain difference.
- CSCD240-E1-B-Q40 A) FOO=bar B) FOO = bar. Which valid; explain error.
- CSCD240-E1-B-Q41 Print "Backup taken on <today>" using $(date +%F).
- CSCD240-E1-B-Q43 Reload ~/.bashrc without opening a new terminal.
- CSCD240-E1-C-Q05 Which redirection sends only stderr of a command to a file err.log?
- CSCD240-E1-C-Q06 Recommended modern syntax for command substitution?