Specifications
Version 2.0
81
attrib
Summary
Displays or changes the attributes of files or directories.
Usage
attrib [+a|-a] [+s|-s] [+h|-h] [+r|-r] [file...] [directory...]
Options
+a|-a
Set or clear the ‘archive’ attribute
+s|-s
Set or clear the ‘system’ attribute
+h|-h
Set or clear the ‘hidden’ attribute
+r|-r
Set or clear the ‘read-only’ attribute
file
File name (wild cards are permitted)
directory
Directory name (wildcards are permitted)
Description
This command displays and sets the attributes of files or directories. The following
four attribute types are supported in the UEFI file system:
• Archive [A]
• System [S]
• Hidden [H]
• Read only [R]
If a file (in general meaning) is a directory, then it is also shown to have the attribute
[D].
If any file in the file list that is specified in the command line does not exist, attrib
will continue processing the remaining files while reporting the error.
If no file or directory is specified, then all of the files in the current directory are
displayed.
If no attribute is specified, then the attributes of the files will be displayed.










