IntroToLinux

Review Questions

  1. What is the purpose of the shebang line in a script?
  2. How do you make a script executable?
  3. What’s the difference between $1 and $@ in command-line arguments?
  4. How do you read user input in a script?
  5. What are the main types of test conditions available?
  6. When would you use a while loop vs a for loop?
  7. How do you handle default values for variables?

Next: → Key Takeaways
Previous: ← Practical Labs
Lesson Home: ↑ Lesson 8: Scripting Course Home: ⌂ Introduction to Linux