[root@localhostTest]# vim hello.sh 1#!/bin/bash2#The Author is Gui_qLi (E-mail:1Linux6@outlook.com)345 echo -e "\e[1;32m Mr Gui is a good man\e[0m""hello.sh"5L, 111C 已写入
[root@localhostTest]# chmod 755 hello.sh
[root@localhostTest]# ./hello.sh MrGui is a good man(绿色的)
[root@localhostTest]#
# vi hello.sh (.sh仅仅只是告诉系统这是bashShell,此时,用vim编辑会先有语法的颜色,但是,可以不加.sh)
#!/bin/bash (标识,标称这是Shell脚本)
#The first program(注释)
echo “Hello world”