功能说明 shell脚本 创建文件并赋予权限 脚本命令 #! /bin/bash read -p "请输入文件路径:" file_test if [ ! -f "$file_test" ]; then touch $file_test chmod 777 $file_test fi 调用 ./file.sh 成功截图 免费扫码领取红包