Pit*_*kos 5 theory algorithm math numbers chmod
我想知道他们是如何通过使用数字来设置使用chmod设置权限的方式.例如:
1 is for execute
2 is for write
4 is for read
Run Code Online (Sandbox Code Playgroud)
任何总和都给予独特的许可:
2+4 = 6 lets you write and read.
1+4 = 5 lets you execute and read
1+2+4 = 7 lets you execute, read and write
Run Code Online (Sandbox Code Playgroud)
有算法吗?比方说,我有10个项目,我想给一个人一个号码,只有那个号码,这个人可以告诉我选择了哪些项目.
| 归档时间: |
|
| 查看次数: |
223 次 |
| 最近记录: |