a11y.skipToMainContent
1

计数器

切换所有者、 组和公用权限的复选框, 以立即看到八进制值、 符号标记和 chmod 命令 .

---
ReadWriteExecuteValue
Owner7
Group6
Public5
Octal
755
Command
chmod 755 filename
rwxr-xr-x
Was this tool helpful?
Send output to:
Advertisement

How to use Chmod Calculator

  1. 检查或取消检查所有者、团体和公众的读取、写取和执行框.
  2. 读取八进制结果和相应的chmod命令.
  3. 单击复制按钮将 chmod 命令复制到剪贴板.

{姓名}是什么来着?

Chmod(change mode)是一个Linux/Unix命令,使用八进制(base-8)数字设置文件权限. 每个数字控制一个权限集:所有者、团体和其他人(公共)。 每个数字是"读"(4),"写"(2),"执行"(1)的总和. 例如,755允许所有者完全访问,其他人读取+执行.

这个交互计算器允许您以视觉方式切换权限并复制精确的chmod命令 。 这是开发者配置网络服务器权限,sysadmins设置文件访问,以及任何学习Unix权限的人的理想.

Advertisement

FAQ

八进制数字是什么意思?
每个数字(0-7)总和3个允许位: Read=4,Write=2,Execute=1. 例如:7=4+2+1(全通),5=4+0+1(读出+执行),6=4+2+0(读出+写出).
Chmod 755是什麽意思?
拥有者获得读出+写出+执行(7),分组获得读出+执行(5),公众获得读出+执行(5). 这是目录和可执行文件的共同权限 .
Chmod 644是什么意思? (英语)?
拥有者获得读出+写出(6),分组获得只读出(4),公共获得只读出(4). 这是文件和图像等普通文件的标准许可.

Related tools

Author

MW
Marcus Webb"The DevTool Craftsman"

Full-Stack Developer & Tools Architect

Marcus has been writing code since the dial-up era. He has contributed to open-source developer tools, built CI/CD pipelines for startups, and debugged production incidents at 3 AM more times than he would like to admit. His philosophy is that the best developer tool is the one that gets out of your way, and he writes about practical tooling that helps teams ship faster with fewer headaches.

Advertisement