attrib
Display or change attributes of files or directories. More information: https://learn.microsoft.com/windows-server/administration/windows-commands/attrib.
- Display all set attributes of files in the current directory:
attrib
- Display all set attributes of files in a specific directory:
attrib
- Display all set attributes of files and [d]irectories in the current directory:
attrib /d
- Display all set attributes of files in the current directory and [s]ub-directories:
attrib /s
- Add the
[r]ead-onlyor[a]rchiveor[s]ystemor[h]iddenornot content [i]ndexedattribute to files or directories:
attrib +
- Remove a specific attribute of files or directories:
attrib -
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
