天天看點

shell腳本

賦予腳本權限。

chmod 555 scriptname (允許任何人都具有可讀和執行權限) [2]

chmod +rx scriptname (允許任何人都具有可讀和執行權限)

chmod u+rx scriptname(隻給腳本的所有者可讀和執行權限)