Training · Linux fundamentals
The analogy. A city with one rule: everything is an address. Files, disks and even running processes have a path, which is why the same three tools can inspect all of them.
The shell is the classroom: the lecture behind this lab covers the mental model, the commands you are about to use, and the four things that usually go wrong.
Read the lecture before you startScripts II: Output & Execution
Write a multi-line script, make it executable, run it, and capture its output to a file.
Activities
01Create /opt/app/greet.sh
Your script file must exist.
02Give it a shebang and at least one echo
The script must start with #!/bin/bash and print something.
03Make /opt/app/greet.sh executable
It must have an execute bit set.
04Run the script and send its output to /opt/app/greet.out
The captured output must contain Hello.