天天看点

shell脚本

赋予脚本权限。

chmod 555 scriptname (允许任何人都具有可读和执行权限) [2]

chmod +rx scriptname (允许任何人都具有可读和执行权限)

chmod u+rx scriptname(只给脚本的所有者可读和执行权限)