ls - ls输出中的 "t"是什么意思?

标签 ls

ls报告以下内容:

# ls -ld /var/lib/puppet/state/
drwxr-xr-t 3 puppet puppet 4096 Jan  8 16:53 /var/lib/puppet/state/

“t”对其他人意味着什么?哪种工具报告权限的符号名称? ls具有--numeric-uid-gid选项,但是是否还有另一个权限?

最佳答案

man ls是您的 friend :

t The sticky bit is set (mode 1000), and is searchable or executable.
(See chmod(1) or sticky(8).)



关于sticky bit:

When set, it instructed the operating system to retain the text segment of the program in swap space after the process exited. This speeds up subsequent executions by allowing the kernel to make a single operation of moving the program from swap to real memory. Thus, frequently-used programs like editors would load noticeably faster.

关于ls - ls输出中的 "t"是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14220594/

相关文章:

linux - ls 在目录中获取文件列表

c - 显示文件类型的函数

java - 从 Java 中的外部进程读取时出现乱码

shell - ls 命令中的彩色突出显示

linux - 当从 ls | 传送结果时 head 不起作用grep

bash - 在目录路径中用空格列出 bash 中的文件的问题

c - 在 c 中访问 bash 局部变量

linux - Bash:检查命令是否返回特定值

bash - Git Bash 不让我 ls 或 cd

linux - 如何在 Linux 中使用命令 "find . -type f -ls"获取按时间排序的列表(ASC/DESC)?