Final Quiz
Test everything.
Time to test everything you've learned, from the very first command to scripts. Pause on each question, choose your answer, and then listen for the explanation.

- Everything you've learned
- Pause and choose
- Then listen
Question 1
Which command shows the folder you're in right now? LS, PWD, or CD? The answer is PWD, print working directory.
Question 2
You want to add a line to the end of a log file, without losing what's already there. Which do you use? The answer is double greater than, which appends. A single one would replace the whole file.
Question 3
How do you count the lines in server dot log that contain ERROR? The answer is grep ERROR, piped into WC dash L. Grep dash C would work too.
Question 4
A script you just wrote says permission denied. What's the fix? The answer is CH mod plus X. Then run it with dot slash.
Question 5
Which cron line runs a script at two AM every day? The answer is zero, two, star, star, star. Minute zero, hour two, every day, every month, every weekday.
Summary
However many you got right, you've come a very long way. Next, the last lesson, and where to go from here.
Key takeaways- pwd, >>, grep | wc
- chmod +x
- cron fields