chmod 是 Unix/Linux 系统中的命令,用于修改文件或目录的权限(mode),例如读/写/执行权限(如 chmod 644 file 或 chmod u+x script.sh)。在更广义上,它也可指“更改权限”这一操作本身。
/tʃiː mɒd/;/tʃiː mɑːd/
Run chmod +x on the script so you can execute it.
对这个脚本运行 chmod +x,这样你就可以执行它了。
For security, the admin used chmod 600 to ensure only the owner could read the private key file.
为安全起见,管理员使用 chmod 600,确保只有文件所有者能读取私钥文件。
chmod 来自命令名的缩写:ch(change,改变)+ mod(mode,模式/权限位)。在 Unix 传统中,“mode”常专指文件权限与相关标志位,因此 chmod 就是“改变权限模式”的意思。