zoukankan      html  css  js  c++  java
  • chmod

    CHMOD is used to change permissions of a file.

      PERMISSION      COMMAND   
    
    
    
       U   G   W
    
      rwx rwx rwx     chmod 777 filename      
    
      rwx rwx r-x     chmod 775 filename
    
      rwx r-x r-x     chmod 755 filename
    
    
      rw- rw- r--     chmod 664 filename
    
      rw- r-- r--     chmod 644 filename
    
    
    
      U = User 
    
      G = Group 
    
      W = World
    
    
    
    
      r = Readable
    
      w = writable
    
      x = executable 
    
      - = no permission
    

    Here is another way of looking at it:

    Permissions:

    400     read by owner
    
    040     read by group
    
    004     read by anybody (other)
    
    200     write by owner
    
    020     write by group
    
    002     write by anybody
    
    100     execute by owner
    
    010     execute by group
    
    001     execute by anybody
    

    To get a combination, just add them up. For example, to get read, write, execute by owner,
    read, execute, by group, and execute by anybody, you would add 400+200+100+040+010+001 to give 751.

  • 相关阅读:
    Android 锁屏消息调研
    [GODOT]可复用移动组件(载具类)
    [GODOT]技能系统初探
    [GODOT]获取节点
    美丽的秋天
    生活
    day7.17
    html
    day 2015.6.08
    不会转载只能先留下网址了
  • 原文地址:https://www.cnblogs.com/Searchor/p/13620903.html
Copyright © 2011-2022 走看看