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

linux下创建一个可执行脚本

2017-08-16 18:18 246 查看
1.touch hello.sh

2.vim hello.sh
键入i
插入#!/bin/sh
echo hello world;
键入:
esc
:
wq
3.chmod 700 hello.sh 解释-rwx------ (700) -- 仅仅有属主有读、写、运行权限。

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