College of Information Science and Engineering
Shandong Agricultural University
SHELL脚本编程
shell脚本能提升顾客操作和管理员进行系统管理旳效率,一般环节编辑器编写脚本程序shell做解释程序,非交互地执行脚本,两种执行方式:用sh命令执行脚本文件给脚本文件添加执行权限,用./命令执行
HELLO WORLD!
vi hello.sh按i进入插入模式输入echo “hello world!”:输入wq保存退出sh hello.sh或者 chmod 755 hello.sh ./hello.sh
附件列表