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
- Host: GitHub
- URL: https://github.com/olgaele/simple-bash-scripts
- Owner: OlgaEle
- Created: 2024-08-20T11:13:05.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-08-20T12:02:31.000Z (10 months ago)
- Last Synced: 2025-04-05T18:16:08.402Z (3 months ago)
- Topics: bash, bash-script, bash-scripting, beginner-friendly, beginners, linux, shell
- Language: Shell
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`