Files
linux.softwareshinobi.com/landing/docs/Bash-Scripts/003-bash-hello-world.md
Software Shinobi 7d9171c854
All checks were successful
learn org at code.softwareshinobi.com/linux.softwareshinobi.com/pipeline/head This commit looks good
reworking content
2025-06-19 10:03:08 -04:00

771 B

Hello World Bash

Let's build your first script. Create shinobi.sh and add the essential shebang, followed by your Hello World message:

touch shinobi.sh

Now, open shinobi.sh and add this content:

#!/usr/bin/env bash

echo "Hello World!"

Save and close the file.

Next, make your script executable:

chmod +x shinobi.sh

Execute your script directly:

./shinobi.sh

You'll see "Hello World!" printed.

Alternatively, you can run the script by explicitly calling the bash interpreter:

bash shinobi.sh

For quick tests, echo works directly in your terminal:

echo "Hello Shinobi!"

Scripts become powerful when combining multiple commands for automated tasks. This is your first step.