linux shell的hello,world

时间:2026-02-17 01:56:19

1、输入下面内容,保存命名为hello.sh

#!/bin/sh

echo “hello,world"

2、执行下面命令,添加可执行属性

chmod +x hello.sh

3、输入下面命令,执行脚本

./hello.sh

© 2026 一点经验网
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com