ubuntu写一个.sh脚本文件

touch hello.sh

gedit hello.sh 
然后输入


#!/bin/bash

echo "Hello world!"



chmod +x hello.sh


./hello.sh

 

    原文作者:米小凡
    原文地址: https://blog.csdn.net/xiaomifanhxx/article/details/82285881
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞