linux文件脚本权限

linux文件脚本权限

chmod +x ./test.sh  #使脚本具有执行权限

./test.sh #执行脚本

/bin/sh test.sh #执行脚本

文件权限

r read权限4

w write写权限2

x execute 执行权限1

chmod 777 test.sh  赋予文件所有读写执行权限

posted @ 2021-10-22 22:43  皮子成  阅读(382)  评论(0)    收藏  举报