Hands-on task
Your first script: shebang and running it
Write your first script — the file /root/hello.sh. Its first line must be a shebang saying that the script is run by bash. After it comes a command that prints exactly one line:
Hello from my first script
Make the script executable and run it as a program — from /root with ./hello.sh.
- bash scripts
- shebang
- chmod
- running a script