shell建立文件

建立文件夾 shell腳本 #!/bin/bash dir="/root/test_dir" if [ ! -d "$dir" ];then mkdir $dir echo "建立文件夾成功" else echo "文件夾已經存在" fi 添加可執行權 chmod +x test_file.sh 建立文件 shell腳本 #!/bin/bash filePath="/root/test_file.
相關文章
相關標籤/搜索