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

来源:互联网 发布:阿里云服务器 mongodb 编辑:程序博客网 时间:2024/05/14 12:12
1.touch hello.sh

2.vim hello.sh 
 键入i 
 插入#!/bin/sh
     echo hello world;
 键入: 
    esc 
    :
    wq
3.chmod 700 hello.sh

4. 执行./hello.sh
0 0
原创粉丝点击