为什么不能用 chflags 在 OS X 中隐藏文件?

ral*_*ian 1 terminal command-line macos

所以,有点奇怪的问题。有一个特定的文件——一个别名——出于某种原因不会从 UI 中隐藏chflags hidden. 我做什么都无所谓。sudo 对这个特定文件无效。

这不是问题,我只是更好奇为什么以及如何无法隐藏这个特别顽固的小家伙。该文件是 Adob​​e Acrobat X 卸载程序的别名。我能够隐藏 Adob​​e 放入 /Applications 的所有其他垃圾sudo chflags hidden,但这个人很抗拒。

想知道是否有人遇到过这种情况,如果是的话,了解为什么某些文件不能从 UI 中隐藏chflags

获取附加信息:

在此处输入图片说明

Lri*_*Lri 5

如果是符号链接,则必须使用chflags -h.

 -h      If the file is a symbolic link, change the file flags of the link itself
         rather than the file to which it points.
Run Code Online (Sandbox Code Playgroud)