怎么在linux下创建一个可运行脚本?

1.touch hello.sh

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

4. 执行./hello.sh

posted @ 2018-09-15 22:20  hoge  阅读(1131)  评论(0编辑  收藏  举报