Geekya215's Blog

moon indicating dark mode
sun indicating light mode

Shell Script Learning

January 14, 2020

This note is based on Shell Tutorial Series,

1. Basic Introduction

use echo command to display some information in the terminal

$ echo Hello world!
$ Hello world!

also we can run a shell script file to get the same output, now create a file named, and edit it with

1 #! /bin/sh
2 echo Hello world!

save it, and excute in the terminal

$ ./
$ Hello world!

Note, if you are use touch command to create .sh file, may be you should change the excute permission! (e.g. sudo chmod +x ./