? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

Bash Basics

Covering the Bash scripting language.

All content is licensed under the Creative Commons Attribution-ShareAlike 4.0 International.


Latest comments:

Tutorial 1 - Simple Hello World

on May 31, 2015

The first program you will probably ever write in any new programming language is the noteworthy Hello World program. What does a Hello World program do? It prints out the exact words Hello World out onto the screen. Today we will be writing our own Hello World program in Bash.

So let's begin.

  1. First you will need to create a blank Bash program, so create a file named HelloWorld.sh on your computer.
  2. Now with your text editor of choice open up the file we created called HelloWorld.sh.
  3. Now type in the following code into the text editor:
    echo "Hello World"
    
  4. Now open up your terminal and make sure you are in the same directory of which you saved the file HelloWorld.sh.
  5. Now type in bash HelloWorld.sh and watch your program output the beautiful words Hello World.

In the next tutorial we will be revising on what we did in this tutorial.

Read more
Add new post

Title

21 hours ago · 2 min read ·
3 comments
Body
Read more

Title

21 hours ago · 2 min read

0 Comments:

user_name1 day ago
Reply
Body
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More