tldr/pages.zh/osx/chflags.md

21 lines
502 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 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}} {{文件夹路径}}`