Questions
In this chapter, we covered Linux Bash scripting. Here are some questions for you to test your knowledge and for further practice:
- What are arrays and how are they used in Bash scripts? Can there be hybrid types?
Hint: Think of their types, how they are defined, and how they are used.
- What is an infinite loop?
Hint: This is something you would not like to use but should know how to escape if needed.
- How many types of loops can be used in a Bash script?
Hint: Not that many, but more than conditional loops.
- Find out how to build a DEB binary package.
Hint: Use the examples from Debian, which can be found at https://www.debian.org/doc/manuals/maint-guide/build.en.html and https://wiki.debian.org/HowToPackageForDebian.