Shell Script Learning
January 14, 2020
This note is based on Shell Tutorial Series,
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 hello.sh, and edit it with
1 #! /bin/sh2 echo Hello world!
save it, and excute in the terminal
$ ./hello.sh$ Hello world!
Note, if you are use
touchcommand to create
.shfile, may be you should change the excute permission! (e.g.
sudo chmod +x ./hello.sh)