让脚本程序设置为可执行
执行脚本程序的方式: l1、将程序文件作为shell的参数: /bin/sh first.sh 以默认shell来运行first.sh /bin/bash first.sh 指定bash shell来运行first.sh l2、通过chmod将脚本程序修改为可执行: chmod +x first.sh 这时在命令行输入first.sh时,通常会报错: -bash: first.sh: command not found解决方法: 1、使用./方法:./fi...