1.打开ubuntu终端,新建一个hello.sh
编辑hello.sh
#!/bin/sh
echo "hello world"
echo "bye"
保存文件
2.为hello.sh添加可执行权限
3.运行hello.sh
1.打开ubuntu终端,新建一个hello.sh
编辑hello.sh
#!/bin/sh
echo "hello world"
echo "bye"
保存文件
2.为hello.sh添加可执行权限
3.运行hello.sh