美文网首页
Shell基础

Shell基础

作者: 星光_22f1 | 来源:发表于2018-01-03 16:45 被阅读0次
  1. echo输出命令

     echo 选项 输出内容
    
     -e 支持反斜线控制的字符转换
    
     echo 'hello world'
    
20180103153123.png
  1. shell 格式

     #!/bin/bash
     echo 'hello world'
    
  2. 执行shell脚本

     1 赋予执行权限 chmod 755 脚本名字
     2 ./hello.sh 或者 bash hello.sh

相关文章

网友评论

      本文标题:Shell基础

      本文链接:https://www.haomeiwen.com/subject/dktknxtx.html