-
echo输出命令
echo 选项 输出内容 -e 支持反斜线控制的字符转换 echo 'hello world'
-
shell 格式
#!/bin/bash echo 'hello world'
-
执行shell脚本
1 赋予执行权限 chmod 755 脚本名字 2 ./hello.sh 或者 bash hello.sh
echo输出命令
echo 选项 输出内容
-e 支持反斜线控制的字符转换
echo 'hello world'
shell 格式
#!/bin/bash
echo 'hello world'
执行shell脚本
1 赋予执行权限 chmod 755 脚本名字
2 ./hello.sh 或者 bash hello.sh
本文标题:Shell基础
本文链接:https://www.haomeiwen.com/subject/dktknxtx.html
网友评论