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.
相关文章
相关标签/搜索