Linux文件权限
2016-04-19 17:42
375 查看
文件类型 权限 硬链接数 所属用户名 文件大小 文件名字
- rw- r-- r-- 1 root root 122 07-22 11:07 abc.c
所属用户权限 所属组权限 其它权限 所属组名 时间
6 4 4
读 写 执行
r w x
1 1 1
r w -
1 1 0
权限表示 最大权限0777
0644
设备类型
块设备 (block device)
字符设备 (character device)
网络设备 (sock device)
文件类型
- 普通文件(normal file) 黑色
可执行文件(excute file) 绿色 (所属用户的可执行权限决定)
d 目录(directory)
蓝色
c 字符设备文件(character) 黄色
b 块设备(block device)
黄色
s 网络设备(sock device) 粉红
l 链接文件(link) 青绿
p 管道文件(pipe) 棕色
chmod 0777 xxxx 将某个文件设置成一个对应的权限
chmod a+x xxxx 将这个文件所有权限加上可执行 a-x 相反
chmod 777 directory -R 将文件夹directory内的所有文件设置成满权限
- rw- r-- r-- 1 root root 122 07-22 11:07 abc.c
所属用户权限 所属组权限 其它权限 所属组名 时间
6 4 4
读 写 执行
r w x
1 1 1
r w -
1 1 0
权限表示 最大权限0777
0644
设备类型
块设备 (block device)
字符设备 (character device)
网络设备 (sock device)
文件类型
- 普通文件(normal file) 黑色
可执行文件(excute file) 绿色 (所属用户的可执行权限决定)
d 目录(directory)
蓝色
c 字符设备文件(character) 黄色
b 块设备(block device)
黄色
s 网络设备(sock device) 粉红
l 链接文件(link) 青绿
p 管道文件(pipe) 棕色
chmod 0777 xxxx 将某个文件设置成一个对应的权限
chmod a+x xxxx 将这个文件所有权限加上可执行 a-x 相反
chmod 777 directory -R 将文件夹directory内的所有文件设置成满权限
相关文章推荐
- Linux文件权限
- Linux文件权限
- Linux head&tail命令
- Linux 调优方案
- 微软拥抱Linux,着实太晚了
- 正确配置Linux系统ulimit值的方法
- Linux下命令行安装weblogic10.3.6
- Linux 服务器时间同步
- 信号量(sem)
- linux grep命令详解
- Linux电源管理(11)_Runtime PM之功能描述
- Linux swap分区使用率高进程排查方法
- CentOS7版本安装ntp服务
- Linux修改文件属性和权限
- Linux电源管理(4)_Power Management Interface
- 归纳工作中用到的Linux 命令
- linux—优化和内存屏障
- Web开发_问题解决(3)之linux服务器上获取路径问题||jsp页面报错问题
- linux常用命令
- Linux USB驱动框架分析