如何赋予文件执行权限

$ chmod +x [文件]

Command
chmod
Description
赋予文件(如 Shell 脚本)执行权限。用法:chmod +x script.sh
Deep Dive
+x 为所有人(所有者、组、其他)添加执行权限。 如果只想赋予所有者权限,请使用 `chmod u+x`。