0


如何在ubuntu编写运行shell脚本

1.打开ubuntu终端,新建一个hello.sh

编辑hello.sh

#!/bin/sh

echo "hello world"

echo "bye"

保存文件

2.为hello.sh添加可执行权限

3.运行hello.sh

标签: ubuntu linux 运维

本文转载自: https://blog.csdn.net/m0_56256361/article/details/131484402
版权归原作者 camony 所有, 如有侵权,请联系我们删除。

“如何在ubuntu编写运行shell脚本”的评论:

还没有评论