Bash Script - Write Hello World Program Last Updated : 08 Dec, 2021 Comments Improve Suggest changes Like Article Like Report In this article, we are going to see how to write "hello world" program in Bash script. The bash script is a text file that contains a set of instructions ( i.e. codes or commands ) that can be executed in the terminal. In any programming language, the first program that we learn to write is " Hello World ". Stepwise ImplementationStep 1: Create an empty file named " HelloWorld " in the terminal We can create an empty file using the following commands: $ touch HelloWorld.sh Where: touch : It is used to create an empty file.HelloWorld.sh : HelloWorld is file with .sh extension of unix shell executable file.Step 2: Open file Here we will open our created file, using the following commands: $ nano HelloWorld.sh Where: nano : It is used to open files in a text editor ( i.e. GNU nano ) The editor is open, write the following code in a text editor: #!/bin/sh # This is bash program to display Hello World echo " Hello World " Where: #! : It is known as shebang./bin/sh: It is the executable path of the system shell.# : It is used to write comments.echo : It is used to display text on the screen.Step 3: Give permission to execute the script$ chmod +x HelloWorld.sh Where: chmod +x : It is used to make file executable.Step 4: Run the script$ ./Helloworld.sh Output: Hello World Comment More infoAdvertise with us Next Article Bash Script - Write Hello World Program T thesahilrai Follow Improve Article Tags : Linux-Unix Bash-Script Similar Reads Swift - Hello World Program Swift is a Programming Language used for developing iOS-based platforms like macOS, apple mobiles, apple iOS Watches, iOS TVs, iOS Keywords, iOS Mouse, and other iOS Software-based Peripherals. This language is almost 80% similar to C and Python languages. Once who is familiar with C and Python lang 2 min read Rust - Hello World Program Every programmer starts their programming journey with a simple "Hello World!" program. In this article, we will write our first "Hello World!" Rust program. If you have not yet installed Rust on your system, please go through the link and install it. In this article we will be working on the follow 3 min read Write an R Program for "Hello Geeks" Hello, Geeks is the first basic program in any programming language. Letâs write the program in R programming language. All one needs to do is display the message âHello Worldâ on the screen. Letâs look at the program: R Program to Print âHello Geeksâ using the print() function:The following R progr 2 min read Hello World in R Programming When we start to learn any programming languages we do follow a tradition to begin HelloWorld as our first basic program. Here we are going to learn that tradition. An interesting thing about R programming is that we can get our things done with very little code. Before we start to learn to code, le 2 min read Bash Scripting - While Loop A while loop is a statement that iterates over a block of code till the condition specified is evaluated to false. We can use this statement or loop in our program when do not know how many times the condition is going to evaluate to true before evaluating to false. Â Table of Content The Syntax of 15+ min read Like