文章浏览阅读1.8w次,点赞13次,收藏62次。Linux 创建.sh脚本文件_linux创建sh文件...
2023-11-12 05:11 阅读 阅读全文文章浏览阅读6.9k次,点赞2次,收藏21次。创建文件夹shell脚本添加可执行权chmod +x test_file.sh创建文件shell脚本#!/bin/bashfilePath="/root/test_file.zzz"if [ ! -f "$filePath" ];thentouch $filePathecho "hello liyang" > $filePathecho &quo......
2023-11-13 09:42 阅读 阅读全文文章浏览阅读1.6w次,点赞6次,收藏79次。在开发的过程中免不了接触 .sh 文件。在此简单整理一下 .sh 文件的创建与打开。1. 创建 .sh 文件打开终端 依次输入以下内容即可创建并执行 .sh 文件:touch helloworld.shgedit helloworld.sh此时会......
2023-11-12 04:22 阅读 阅读全文