gpt4 book ai didi

linux - 目录的 rwx 中的 'x' 是什么意思?

转载 作者:IT王子 更新时间:2023-10-29 01:01:04 29 4
gpt4 key购买 nike

<分区>

我通过mkdir testdir得到了一个testdir,并通过touch testdir/a在里面创建了一个文件。

drwxr-xr-x  2 jermaine     jermaine       4096 Mar 12 22:57 testdir

如果我通过 chmod -x testdir 删除“x”

那我就不行了

cd testdir

touch testdir/b

ls -l testdir

cat testdir/a

所以我的问题是为什么我不能列出带有“r”但没有“x”的目录下的文件层次结构?目录中的“x”到底是什么意思?

我知道一些解释,比如“x 表示进入目录,必须先进入才能读写”。但是“进入”是什么意思?我真的很感谢 inode 或 dentry 级别的答案。非常感谢。

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com