Covered Shell Scripting basics today — and passed Chapter 11 and Chapter 12 exams both with 80%.
Every sysadmin/DevOps engineer needs this skill. Tasks that would take hours to complete manually, one command at a time, can be done in minutes with a script.
In simple terms: Shell scripting is taking your repetitive daily commands, saving them into a text file, and having them execute line by line automatically.
Method 1:
sh test.sh
bash test.shDoesn't require the script file to have execute permission.
Method 2:
./test.shRunning it directly like this requires the file to have execute permission set first (chmod +x test.sh).
The very first line of a script defines the interpreter:
#!/bin/bashThis tells the operating system exactly which shell should process the commands inside the file.
For real automation, three building blocks come together:
- Variables — for storing temporary information/data
- Conditionals (if/else) — for logical decision-making
- Loops — for repeating a task's execution
6 chapters left in the course — wrapping it up to get the certification, then moving into KodeKloud for deeper hands-on, practical labs.
#Linux #DevOps #CiscoNetworkingAcademy #LearningInPublic #ShellScripting