您的位置:首页 > 运维架构 > Shell

在linux下创建一个可运行shell脚本

2017-03-21 09:23 253 查看
1.touch hello.sh

2.vim hello.sh 

 键入i 

 插入#!/bin/sh

     echo hello world;

 键入: 

    esc 

    :

    wq

3.chmod 700 hello.sh

4. 执行./hello.sh
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: