AI Hints
Home›Linux Tutorial›Interview, Quiz, and Next Steps
Linux · Lesson 119 of 120

Final Quiz

Test everything.

⏱ 2 min read▶ Video at 2:40:12🎓 Free
Watch this lesson in the Linux courseWatch on YouTube ↗Full Linux course

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.

Final Quiz
From the video: Final Quiz
  • 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.

Quick check
Which folder am I in?

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.

Quick check
Add to the end of log.txt?

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.

Quick check
Count ERROR lines in server.log?

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.

Quick check
./run.sh: Permission denied. Fix?

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.

Quick check
Run at 2:00 am every day?

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
Next up: Course Complete — where to go next