shell脚本入门鬼鬼骑士
时间: 2023-12-19 22:32:27 浏览: 162
以下是shell脚本入门的一些基本操作:
1. 编辑一个shell脚本文件test2.sh,并插入内容:
```shell
vi /opt/test2.sh
```
按‘i’插入字符,输入内容:
```shell
echo $#
echo $1
shift +
```
输入 wq 回车保存并退出vi编辑器。
2. 赋予test2.sh执行权限:
```shell
chmod +x /opt/test2.sh
```
阅读全文
相关推荐














