- Ubuntu 22.04 LTS
- VIM
- shellcheck
- BASH
-
bash file.sh
-Example:bash 001-hello.sh
-
Or change permision and indicates the file is not in the path
-
Bring execution permission
chmod 755 file.sh
-
Execute the file
./file.sh
- To display the exit code after execute a script
echo $?
return the last return value to the system