Starter Template

Steps to make Bash script

  1. vi ./{file_name}.sh

Enter in code

#!/bin/bash

echo hello

This will make the file executable

2. chmod +x ./{file_name}.sh

This will run the script

3. ./{file_name}

Example output

hello

Last updated