zoukankan      html  css  js  c++  java
  • Linux笔记 — 文件与目录权限的表示方法

    查看文件权限的方法
    查看文件权限

    • rw - - - - - - - 1 root root 1523 sep 28 12:05 anaconda-ks.cfg
      类型 权限 所属用户和组 文件名

    一、文件类型

    • 普通文件
      普通文件权限的表示方法
      字符权限表示方法
      r 读
      w 写
      x 执行
      数字权限的表示方法
      r = 4
      w = 2
      x = 1

    文件权限的表示方法
    -rw-r-xr-- 1 username groupname mtime filename
    rw- 文件属主的权限
    r-x 文件属组的权限
    r-- 其他用户的权限
    创建新文件有默认权限,根据umask值计算,属主和属组根据当前进程的用户来设定

    d 目录文件
    目录权限的表示方法
    x (可以)进入目录
    rx (可以进入目录,并)显示目录内的文件名
    wx 修改目录内的文件名

    b 块特殊文件

    c 字符特殊文件

    l 符号链接

    f 命名管道

    s 套接字文件

  • 相关阅读:
    leetcode 137
    leetcode 134
    133. Clone Graph
    leetcode 131
    leetcode 130
    mac uwsgi ssl issue handler
    leetcode 85 Maximal Rectangle golang
    leetcode 84 golang
    leetcode 61
    C# 后台实现一次上传多个文件
  • 原文地址:https://www.cnblogs.com/lijinping321/p/15223186.html
Copyright © 2011-2022 走看看