1.touch hello.sh
2.vim hello.sh
键入i
插入#!/bin/sh
echo hello world;
键入:
esc
:
wq
3.chmod 700 hello.sh
4. 执行./hello.sh
怎么在linux下创建一个可运行脚本?
猜你喜欢
转载自www.cnblogs.com/hoge66/p/9652657.html
今日推荐
周排行