Kolam Ayer MakersLinux Foundations

bash

Use

bash ~/scripts/hello.sh Makers

What It Does

bash runs a Bash script.

Practice

Use it before executable permissions are set, then compare with running the script directly.

Watch Out

Shell syntax depends on the shell. These scripts use Bash.

Shebang Connection

bash script.sh runs Bash explicitly. ./script.sh asks the system to execute the file directly, so the file needs executable permission and a shebang such as #!/bin/bash.

Docs Pointers