菜鸟学习.sh文件操作总结
1.创建hello.sh文件
touch hello.sh
2.编辑hello.sh文件
vi hello.sh
3.保存hello.sh文件
3.1保存退出
敲击esc, 然后输入 :wq ,回车退出
3.2不保存直接退出
敲击esc,然后输入:q!
4.添加可执行权限,当然默认就是可执行的。
chmod +x hello.sh
5.运行hello.sh文件
5.1./hello.sh
5.2sh hello.sh
6.删除hello.sh文件
rm hello.sh