Files
tldr/pages.zh/osx/chflags.md

21 lines
502 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# chflags
> 更改文件或文件夹的标志。
> 更多信息:<https://keith.github.io/xcode-man-pages/chflags.1.html>.
- 给文件设置 hidden隐藏标签
`chflags {{hidden}} {{文件路径}}`
- 取消文件的 hidden 标签:
`chflags {{hidden}} {{文件路径}}`
- 递归地给文件夹中每个文件设置 uchg 标志:
`chflags -R {{uchg}} {{文件夹路径}}`
- 递归地撤销文件夹中每个文件设置的 uchg 标志:
`chflags -R {{nouchg}} {{文件夹路径}}`