符号 | 说明 | 值(Golang) |
---------- | 一般文件 | 0 |
d--------- | 目录 | 1 << 31 |
a--------- | 只添加文件(可由chattr设置) | 1 << 30 |
l--------- | exclusive use | 1 << 29 |
T--------- | 临时文件 | 1 << 28 |
L--------- | 符号链接 | 1 << 27 |
D--------- | 设备文件,如硬盘、软盘等 | 1 << 26 |
p--------- | 命令管道文件(pipe) | 1 << 25 |
S--------- | Socket文件 | 1 << 24 |
u--------- | setuid | 1 << 23 |
g--------- | setgid | 1 << 22 |
c--------- | 字符设备文件,即一些串行端口的接口文件,如键盘、鼠标等 | 1 << 21 |
t--------- | sticky | 1 << 20 |