Bash Scripting
HomeTech JournalsPersonal ProjectsSysadmin Wiki
  • Bash Scripting
  • Basic
    • Starter Template
Powered by GitBook
On this page
  1. Basic

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
PreviousBash Scripting

Last updated 2 years ago