Linux权限分别用二进制和十进制显示如下:

rwx=111=4+2+1=7

r-x=101=4+0+1=5

rw-=110==4+2+0=6

r--=100=4+0+0=4

用r=4,w=2,x=1来表示权限。

[root@sky9896 home]# mkdir Linux

[root@sky9896 home]# ll

drwxr-xr-x  2 root    root        4096 9月   3 14:07 Linux

...

[root@sky9896 home]# chmod -R 755 Linux

[root@sky9896 home]# ll

drwxr-xr-x  2 root    root        4096 9月   3 14:07 Linux

...

[root@sky9896 home]# chmod -R 775 Linux

[root@sky9896 home]# ll

drwxrwxr-x  2 root    root        4096 9月   3 14:07 Linux

...

[root@sky9896 home]# chmod -R 777 Linux

[root@sky9896 home]# ll

drwxrwxrwx  2 root    root        4096 9月   3 14:07 Linux

...

[root@sky9896 home]# chmod -R 555 Linux  #撤销用户对Linux目录的w权限

[root@sky9896 home]# ll

dr-xr-xr-x  2 root    root        4096 9月   3 14:07 Linux

...

[root@sky9896 home]# chmod -R 644 Linux

[root@sky9896 home]# ll

drw-r--r--  2 root    root        4096 9月   3 14:07 Linux

...