linux shell 初级

.sh作为后缀

在shell脚本里第一行要以 “#! /bin/bash” 开头,它代表的意思是,该文件使用的是bash语法

执行方法 :

                ./shell.sh

               sh  ./shell.sh

               source./shell.sh

猜你喜欢

转载自blog.csdn.net/lxp199741/article/details/81386670