RH134 — Shell scripts and command line
Shell environment, simple Bash scripts, loops, conditionals, and chapter 1 lab.
Goal
Document chapter 1 of RH134 v10.0 while studying it: strengthen the command line and automate tasks with Bash scripts on RHEL.
Chapter content
| Section | Topic |
|---|---|
| 1.1 | Modifying the shell environment |
| 1.2 | Guided exercise: modifying the shell environment |
| 1.3 | Writing simple Bash scripts |
| 1.4 | Guided exercise: writing simple Bash scripts |
| 1.5 | Running loops and conditional commands |
| 1.6 | Guided exercise: loops and conditional commands |
| 1.7 | Lab: shell scripts and command line |
| 1.8 | Summary |
What I practice
- Environment variables,
export, and profile files (~/.bashrc,/etc/profile.d/). - Scripts with shebang, execute permissions, and positional arguments (
$1,$@). if/elif/else,for,while, andcasestructures.- Running everything in the ROL lab without a separate local environment.
Reference commands
chmod +x script.sh
./script.sh arg1 arg2
export VAR=value
source ~/.bashrc
Lab notes
(Fill in after lab 1.7: scripts used, syntax errors, and how they were fixed.)
Next step
Finish chapter 1 lab on ROL and paste the concrete steps here when the chapter is done.