shell脚本教程详细讲解.docx

College of Information Science and Engineering College of Information Science and Engineering College of Information Science and Engineering College of Information Science and Engineering SHELL脚本编程 Shan dong Agricultural University shell脚本能提高用户操作和管理员 进行系统管理的效率,一般步骤 编辑器编写脚本程序 shell做解释程序,非交互地执行脚本 ,两种执行方式: 用sh命令执行脚本文件 给脚本文件添加执行权限,用?/命令执行 HELLO WORLD! 1? vi hello, sh ■按i进入插入模式 ■输入echo hello world!n ■:输入wq保存退出 2. sh hello. sh 或者 chmod 755 hello, sh ? /hello, sh 3 PAGE PAGE # PAGE PAGE # —、VI编辑器 VI编辑器的使用 1. 2. 3. 4. 5. 6. VI的三种工作模式 VI的启动 VI的退出 VI的文本编辑 VI命令模式下的操作 VI行命令模式下的操作 ■系统配置文件、shell脚本

文档评论(0)

1亿VIP精品文档

相关文档