Skip to main content

How to write shell script in linux?

Step: 1

Open VI editor or GEDIT

Step: 2

Copy paste the following lines in that file
(example: filename-  myscript.sh)

#!/bin/bash
# My first script

echo "Hello World!"

Step: 3

Change the permission
sudo chmod -R 777 myscript.sh

Step: 4

Run the script

./myscript.sh

Popular posts from this blog

The old company comeup with new brand MAXBEN - Logo meaning

I am so happy to design this logo for my friend Suresh Mahalingam to boost his paint business to the next level. The first step in his process is logo design. He had a clear idea about his business, processes, pricing and target audience. I just collect all those information from him and created the logo with some appropriate meanings. Check out the logo here