An open API service indexing awesome lists of open source software.

https://github.com/olgaele/simple-bash-scripts


https://github.com/olgaele/simple-bash-scripts

bash bash-script bash-scripting beginner-friendly beginners linux shell

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# Simple Bash Scripts

1. [Hello World](hello_world.sh)
2. [Basic Calculator](basic_calculator.sh)

### 🛠Some Instructions🛠

#### 🪚 Create new file

You can create a script file using `nano` text editor by running:
`nano hello_world.sh`

#### ✏️ Create Bash script

Inside the file, you can write the Bash code provided in any of the links above.

When ready, you can save and close the editor with the `Ctrl+X` keyboard shortcut.

#### 🔓 Define permissions

If you want to run the Bash script we made, you should give it executable permissions.

You can achieve this by running the following command:

`chmod +x hello_world.sh`

#### 💣 Run

Finally, to run the Bash script, use the below command:
`./hello_world.sh`