mirror of https://github.com/CrimsonTome/tldr.git
28 lines
581 B
Markdown
28 lines
581 B
Markdown
|
# attrib
|
||
|
|
||
|
> Displays or changes file and directory attributes.
|
||
|
|
||
|
- Display the attributes of the files in the current directory:
|
||
|
|
||
|
`attrib`
|
||
|
|
||
|
- Display the attributes of the files in the current directory and sub-directories:
|
||
|
|
||
|
`attrib /S`
|
||
|
|
||
|
- Display the attributes of the files and folders in the current directory and sub-directories:
|
||
|
|
||
|
`attrib /S /D`
|
||
|
|
||
|
- Add the read-only attribute to a file:
|
||
|
|
||
|
`attrib +R {{document.txt}}`
|
||
|
|
||
|
- Remove the system and hidden attributes of a file:
|
||
|
|
||
|
`attrib -S -H {{document.txt}}`
|
||
|
|
||
|
- Add the hidden attribute to a folder:
|
||
|
|
||
|
`attrib +H {{path\to\folder}}`
|