Writing and debugging scripts

Chapter 2. Writing and debugging scripts

Table of Contents
2.1. Creating and running a script
2.1.1. Writing and naming
2.1.2. script1.sh
2.1.3. Executing the script
2.2. Script basics
2.2.1. Which shell will run the script?
2.2.2. Adding comments
2.3. Debugging Bash scripts
2.3.1. Debugging on the entire script
2.3.2. Debugging on part(s) of the script
2.4. Summary
2.5. Exercises

After going through this chapter, you will be able to:

  • Write a simple script

  • Define the shell type that should execute the script

  • Put comments in a script

  • Change permissions on a script

  • Execute and debug a script


138 visits (2 today, 15 this week, 63 this month, 138 this year)
Uptime: 19:38:58 up 10 days, 1:22, 8 users, load average: 0.03, 0.05, 2.49
3.147.36.198 GET from server z.larryforalaska.com

Friday, December 27, 2024 @ 7:38:58 PM
z.ServerAdmin@lam1.us