Module 6 Part III
1. What is a shell in the context of Linux or Unix operating systems?
2. Explain the difference between an interactive shell and a non-interactive shell.
3. How do you create and execute a basic shell script? Provide an example.
4. Describe the purpose of the chmod command in shell scripting.
5. What is the difference between #!/bin/bash and #!/bin/sh at the beginning of a shell script?
6. How can variables be defined and used in a shell script? Provide an example.
7. What is the significance of using loops (such as for and while) in shell scripts? Provide
examples for both.
8. Explain the purpose of conditionals in shell scripting. How are if-else statements used?
9. How do you use input and output redirection in shell scripting? Provide examples.
10. What are some common debugging techniques used in shell scripting?