<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=File_attribute</id>
	<title>File attribute - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://debianws.lexgopc.com/wiki143/index.php?action=history&amp;feed=atom&amp;title=File_attribute"/>
	<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=File_attribute&amp;action=history"/>
	<updated>2026-10-25T16:06:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.1</generator>
	<entry>
		<id>http://debianws.lexgopc.com/wiki143/index.php?title=File_attribute&amp;diff=1354775&amp;oldid=prev</id>
		<title>imported&gt;Nathan Hadley (Pigeon): Corrected grammar.</title>
		<link rel="alternate" type="text/html" href="http://debianws.lexgopc.com/wiki143/index.php?title=File_attribute&amp;diff=1354775&amp;oldid=prev"/>
		<updated>2024-09-13T12:48:37Z</updated>

		<summary type="html">&lt;p&gt;Corrected grammar.&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Metadata associated with computer file that define file system behavior}}&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;File attributes&amp;#039;&amp;#039;&amp;#039; are a type of [[metadata]] that describe and may modify how [[Computer file|files]] and/or [[Directory (file systems)|directories]] in a [[filesystem]] behave. Typical file attributes may, for example, indicate or specify whether a file is visible, modifiable, compressed, or encrypted. The availability of most file attributes depends on support by the underlying filesystem (such as [[File Allocation Table|FAT]], [[NTFS]], [[ext4]]) &lt;br /&gt;
where attribute data must be stored along with other control structures. Each attribute can have one of two states: set and cleared. Attributes are considered distinct from other metadata, such as dates and times, [[filename extension]]s or [[file system permissions]]. In addition to files, [[folder (computing)|folder]]s, [[volume (computing)|volume]]s and other file system objects may have attributes.&lt;br /&gt;
&lt;br /&gt;
==DOS and Windows==&lt;br /&gt;
Traditionally, in [[DOS]] and [[Microsoft Windows]], [[computer file|file]]s and [[folder (computing)|folder]]s accepted four attributes:&amp;lt;ref name=pcmag-t /&amp;gt;&amp;lt;ref name=computerhope-t /&amp;gt;&amp;lt;ref name=IndianaUni-t /&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;[[Archive bit|Archive]]&amp;#039;&amp;#039;&amp;#039; (A): When set, it indicates that the hosting file has changed since the last [[backup]] operation. Windows&amp;#039; file system sets this attribute on any file that has changed. Backup software then has the duty of clearing it upon a successful full or incremental backup (not a differential one).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Hidden&amp;#039;&amp;#039;&amp;#039; (H): When set, indicates that the hosting file is hidden. MS-DOS commands like &amp;lt;code&amp;gt;[[dir (command)|dir]]&amp;lt;/code&amp;gt; and Windows apps like [[File Explorer]] do not show hidden files by default, unless asked to do so.&amp;lt;ref&amp;gt;{{cite web|title=What is a hidden file?|url=http://windows.microsoft.com/en-US/windows7/What-is-a-hidden-file|work=Windows 7 Help|publisher=Microsoft|access-date=2 December 2012}}&amp;lt;/ref&amp;gt; &lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;System&amp;#039;&amp;#039;&amp;#039; (S): When set, indicates that the hosting file is a critical system file that is necessary for the computer to operate properly. MS-DOS and Microsoft Windows use it to mark important system files. MS-DOS commands like &amp;lt;code&amp;gt;dir&amp;lt;/code&amp;gt; and Windows apps like File Explorer do not show system files by default even when hidden files are shown, unless asked to do so.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Read-only&amp;#039;&amp;#039;&amp;#039; (R): When set, indicates that a file should not be altered. Upon opening the file, file system [[API]] usually does not grant write permission to the requesting application, unless the application explicitly requests it. Read-only attributes on folders are usually ignored, being used for another purpose.&amp;lt;ref name=&amp;quot;hidden and readonly&amp;quot;/&amp;gt;&amp;lt;ref&amp;gt;{{cite web|title=Why is the readonly property on folders so strange?|url=https://devblogs.microsoft.com/oldnewthing/20030930-00/?p=42353}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As new versions of Windows came out, Microsoft has added to the inventory of available attributes on the  [[NTFS]] file system,&amp;lt;ref name=&amp;quot;microsoft-full&amp;quot; /&amp;gt; including but not limited to:&amp;lt;ref&amp;gt;{{cite web|title=HOW TO: Use the File Attribute Management Script (Fileattributes.pl) in Windows 2000|url=http://support.microsoft.com/kb/320050|work=Microsoft support|publisher=Microsoft|access-date=2 December 2012}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Compressed&amp;#039;&amp;#039;&amp;#039; (C): When set, Windows [[data compression|compresses]] the hosting file upon storage. For more information, see {{section link|NTFS|File compression}}.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Encrypted&amp;#039;&amp;#039;&amp;#039; (E): When set, Windows [[filesystem-level encryption|encrypts]] the hosting file upon storage to prevent unauthorized access. For more information, see {{section link|NTFS|Encryption}}.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Not Content-Indexed&amp;#039;&amp;#039;&amp;#039; (I): When set, [[Indexing Service]] or [[Windows Search]] do not include the hosting file in their indexing operation.&lt;br /&gt;
&lt;br /&gt;
Other attributes that are displayed in the &amp;quot;Attributes&amp;quot; column of Windows Explorer&amp;lt;ref name=&amp;quot;microsoft-full&amp;quot;/&amp;gt; include:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Directory&amp;#039;&amp;#039;&amp;#039; (D): The entry is a [[Directory (computing)|subdirectory]], containing file and directory entries of its own.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Reparse Point&amp;#039;&amp;#039;&amp;#039; (L): The file or directory has an associated re-parse point, or is a [[symbolic link]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Offline&amp;#039;&amp;#039;&amp;#039; (O): The file data is physically moved to offline storage (Remote Storage).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Sparse&amp;#039;&amp;#039;&amp;#039; (P): The file is a [[sparse file]], i.e., its contents are partially empty and non-contiguous.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Temporary&amp;#039;&amp;#039;&amp;#039; (T): The file is used for temporary storage.&lt;br /&gt;
&lt;br /&gt;
In DOS, [[OS/2]] and Windows, the &amp;lt;code&amp;gt;[[attrib]]&amp;lt;/code&amp;gt; command in [[cmd.exe]] and [[command.com]] can be used to change and display the four traditional file attributes.&amp;lt;ref name=IndianaUni-t /&amp;gt;&amp;lt;ref name=pcmag-attrib.exe /&amp;gt; File Explorer in Windows can show the seven mentioned attributes but cannot set or clear the System attribute.&amp;lt;ref name=&amp;quot;hidden and readonly&amp;quot; /&amp;gt; [[Windows PowerShell]], which has become a component of [[Windows 7]] and later, features two commands that can read and write attributes: &amp;lt;code&amp;gt;Get-ItemProperty&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;Set-ItemProperty&amp;lt;/code&amp;gt;.&amp;lt;ref&amp;gt;{{cite web|title=Use a PowerShell Cmdlet to Work with File Attributes|url=http://blogs.technet.com/b/heyscriptingguy/archive/2011/01/26/use-a-powershell-cmdlet-to-work-with-file-attributes.aspx|work=Hey, Scripting Guy! Blog|publisher=Microsoft|access-date=3 December 2012|date=26 January 2011}}&amp;lt;/ref&amp;gt; To change an attribute on a file on [[Windows NT]], the user must have appropriate [[file system permissions]] known as &amp;#039;&amp;#039;Write Attributes&amp;#039;&amp;#039; and &amp;#039;&amp;#039;Write Extended Attributes&amp;#039;&amp;#039;.&amp;lt;ref&amp;gt;{{cite web|title=How to set, view, change, or remove special permissions for files and folders in Windows XP|url=http://support.microsoft.com/kb/308419|work=Microsoft Support|publisher=Microsoft|access-date=2 December 2012|date=7 May 2007}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Unix and POSIX==&lt;br /&gt;
In [[Unix]] and Unix-like systems, including [[POSIX]]-conforming systems, each file has a &amp;#039;mode&amp;#039; containing 9 bit flags controlling read, write and execute permission for each of the file&amp;#039;s owner, group and all other users (see [[File-system permissions#Traditional Unix permissions|File-system permissions §Traditional Unix permissions]] for more details) plus  the [[setuid|&amp;#039;&amp;#039;setuid&amp;#039;&amp;#039; and &amp;#039;&amp;#039;setgid&amp;#039;&amp;#039;]] bit flags and a [[sticky bit|&amp;#039;sticky&amp;#039; bit flag]].&lt;br /&gt;
The mode also specifies the [[Unix file types|file type]] (regular file, directory, or some other special kind).&lt;br /&gt;
&lt;br /&gt;
===4.4BSD and derivatives===&lt;br /&gt;
In [[4.4BSD]] and [[4.4BSD-Lite]], files and directories (folders) accepted four attributes that could be set by the owner of the file or the [[superuser]] (the &amp;quot;User&amp;quot; attributes) and two attributes that could only be set by the superuser (the &amp;quot;System&amp;quot; attributes):&amp;lt;ref&amp;gt;{{man|2|chflags|4.4BSD-Lite2}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User) No-dump&amp;#039;&amp;#039;&amp;#039;: When set, it indicates that the file or directory should not be saved during a [[backup]] operation.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User and System) Immutable&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory should not be altered. Attempts to open the file for writing, create a file within the directory, remove a file from the directory, rename a file within the directory, rename the file or directory, or remove the file or directory will fail with a permissions error.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User and System) Append-only&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file should only be appended to.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User) Opaque&amp;#039;&amp;#039;&amp;#039;: When set on a directory, indicates that the directory is opaque when viewed through a [[Union mount|union stack]].&lt;br /&gt;
&lt;br /&gt;
[[FreeBSD]] added some additional attributes,&amp;lt;ref name=&amp;quot;freebsd-flags&amp;quot;&amp;gt;{{man|2|chflags|FreeBSD}}&amp;lt;/ref&amp;gt; also supported by [[DragonFly BSD]]:&amp;lt;ref name=&amp;quot;dragonflybsd-flags&amp;quot;&amp;gt;{{man|2|chflags|DragonFly BSD}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User and System) No-unlink&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory should not be renamed or removed. Attempts to rename or remove the file or directory will fail with a permissions error.&lt;br /&gt;
&lt;br /&gt;
FreeBSD also supports:&amp;lt;ref name=&amp;quot;freebsd-flags&amp;quot;/&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(System) No-archive&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory should not be archived.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(System) Snapshot&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory is a snapshot file. This attribute is maintained by the system, and cannot be set, even by the super-user.&lt;br /&gt;
&lt;br /&gt;
whereas DragonFly BSD supports:&amp;lt;ref name=&amp;quot;dragonflybsd-flags&amp;quot;/&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User and System) No-history&amp;#039;&amp;#039;&amp;#039;: When set, indicates that history should not be retained for the file or directory.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User) Swapcache&amp;#039;&amp;#039;&amp;#039;: When set, indicates that clean filesystem data for the file, or for the directory and everything underneath the directory, should be cached in swap space on a [[solid-state drive]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(System) Swapcache&amp;#039;&amp;#039;&amp;#039;: When set, indicates that clean filesystem data for the file, or for the directory and everything underneath the directory, should &amp;#039;&amp;#039;not&amp;#039;&amp;#039; be cached in swap space on a solid-state drive.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(System) Archived&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory may be archived.&lt;br /&gt;
&lt;br /&gt;
[[NetBSD]] added another attribute,&amp;lt;ref&amp;gt;{{man|2|chflags|NetBSD}}&amp;lt;/ref&amp;gt; also supported by [[OpenBSD]]:&amp;lt;ref&amp;gt;{{man|2|chflags|OpenBSD}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(System) Archived&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory is archived.&lt;br /&gt;
&lt;br /&gt;
[[macOS]] added three attributes:&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User) Hidden&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory should not, by default, be displayed in the GUI; [[ls]] will display it, however.&amp;lt;ref&amp;gt;{{man|2|chflags|Darwin}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(System) Restricted&amp;#039;&amp;#039;&amp;#039;: When set, indicates that the file or directory will be protected by [[System Integrity Protection]]&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;(User and System) Compressed&amp;#039;&amp;#039;&amp;#039;: Read-only attribute for files compressed using [[HFS_Plus|HFS+]] Compression&lt;br /&gt;
&lt;br /&gt;
In these systems, the &amp;lt;code&amp;gt;[[chflags]]&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;[[ls]]&amp;lt;/code&amp;gt; commands can be used to change and display file attributes.  To change a &amp;quot;user&amp;quot; attribute on a file in 4.4BSD-derived operating systems, the user must be the owner of the file or the superuser; to change a &amp;quot;system&amp;quot; attribute, the user must be the superuser.&lt;br /&gt;
&lt;br /&gt;
===Linux===&lt;br /&gt;
The [[Linux]] operating system can support a [[Chattr#Attributes|wide range of file attributes]] that can be listed by the &amp;lt;code&amp;gt;lsattr&amp;lt;/code&amp;gt; command and modified, where possible, by the &amp;lt;code&amp;gt;[[chattr]]&amp;lt;/code&amp;gt; command.&lt;br /&gt;
Programs can examine and alter attributes using [[ioctl]] operations.&amp;lt;ref&amp;gt;{{man|2|ioctl_iflags|Linux}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Many Linux file systems support only a limited set of attributes, and none of them support every attribute that &amp;lt;code&amp;gt;chattr&amp;lt;/code&amp;gt; can change. File systems that support at least some attributes include [[ext4]], [[XFS]] and [[btrfs]].&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;margin-left:auto; margin-right:auto&amp;quot;&lt;br /&gt;
|+ Common file attributes supported by many common Linux file systems&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!Attribute&lt;br /&gt;
!{{mono|lsattr}} flag&lt;br /&gt;
!{{mono|chattr}} option&lt;br /&gt;
!Semantics and rationale&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!No &amp;lt;code&amp;gt;atime&amp;lt;/code&amp;gt; updates&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;A&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;+A,-A&amp;lt;/code&amp;gt;&lt;br /&gt;
|[[stat (Unix)|{{mono|atime}} record]] is not modified when file is read/accessed.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!Append-only&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;+a,-a&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Writing to file only allowed in append mode.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!Immutable&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;+i,-i&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Prevents any change to file&amp;#039;s contents or metadata: file/directory cannot be written to, deleted, renamed, or hard-linked.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!No dump&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;+d,-d&amp;lt;/code&amp;gt;&lt;br /&gt;
|File is skipped by the [[dump (Unix)|{{mono|dump}} program]]&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!Secure deletion&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;s&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;+s,-s&amp;lt;/code&amp;gt;&lt;br /&gt;
|Requests that, when deleted, all file data blocks are [[Data remanence#Overwriting|filled with zeroes]].&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!Synchronous updates&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;S&amp;lt;/code&amp;gt;&lt;br /&gt;
|&amp;lt;code&amp;gt;+S,-S&amp;lt;/code&amp;gt;&lt;br /&gt;
|Changes are written synchronously to the underlying filesystem storage medium; equivalent to &amp;#039;sync&amp;#039; mount option for affected files.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
===OpenSolaris and derivatives===&lt;br /&gt;
Support for &amp;quot;system attributes&amp;quot; (in which the operating system defines the meaning, unlike general [[extended file attributes]]) was added to OpenSolaris in 2007 in support of the CIFS server.&amp;lt;ref&amp;gt;{{cite web |last1=Shellenbaum |first1=Mark |title=Extensible Attribute Interfaces [PSARC/2007/315] |url=https://illumos.org/opensolaris/ARChive/PSARC/2007/315/spec.final.txt |website=OpenSolaris ARC Material Archive |publisher=illumos.org |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;  It has been carried forward from there into both the [[Oracle Solaris]] 11 releases and the open source [[illumos]] project.&lt;br /&gt;
&lt;br /&gt;
In this implementation, a [https://docs.oracle.com/cd/E88353_01/html/E37853/sysattr-7.html wide range of attributes] can be set via the &amp;lt;code&amp;gt;[[chmod]]&amp;lt;/code&amp;gt; command&amp;lt;ref&amp;gt;{{cite web |title=chmod(1) |url=https://docs.oracle.com/cd/E88353_01/html/E37839/chmod-1.html |website=Oracle Solaris 11.4 Reference Library: man pages section 1: User Commands |publisher=Oracle |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |title=chmod(1) |url=https://illumos.org/man/1/chmod |website=illumos man pages |publisher=illumos.org |access-date=10 March 2023}}&amp;lt;/ref&amp;gt; and listed by the &amp;lt;code&amp;gt;[[ls]]&amp;lt;/code&amp;gt; command.&amp;lt;ref&amp;gt;{{cite web |title=ls(1) |url=https://docs.oracle.com/cd/E88353_01/html/E37839/ls-1.html |website=Oracle Solaris 11.4 Reference Library: man pages section 1: User Commands |publisher=Oracle |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |title=ls(1) |url=https://illumos.org/man/1/ls |website=illumos man pages |publisher=illumos.org |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
Programs can examine and alter attributes using the &amp;lt;code&amp;gt;getattrat&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;setattrat&amp;lt;/code&amp;gt; functions.&amp;lt;ref&amp;gt;{{cite web |title=getattrat(3c)/setattrat(3c) |url=https://docs.oracle.com/cd/E88353_01/html/E37843/getattrat-3c.html |website=Oracle Solaris 11.4 Reference Library: man pages section 3: Basic Library Functions |publisher=Oracle |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{cite web |title=getattrat(3c)/setattrat(3c) |url=https://illumos.org/man/3C/getattrat |website=illumos man pages |publisher=illumos.org |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Currently the [[ZFS]] file system supports all defined attributes, and starting in Oracle Solaris 11.2, the [[tmpfs]] file system supports a subset of attributes.&amp;lt;ref&amp;gt;{{cite web |title=sysattr(7) |url=https://docs.oracle.com/cd/E88353_01/html/E37853/sysattr-7.html |website=Oracle Solaris 11.4 Reference Library: man pages section 7 |publisher=Oracle |access-date=10 March 2023}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable sortable&amp;quot; style=&amp;quot;margin-left:auto; margin-right:auto&amp;quot;&lt;br /&gt;
|+ Common file attributes supported by Oracle Solaris and illumos systems&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!Attribute&lt;br /&gt;
!Compact flag for {{mono|ls}} &amp;amp; {{mono|chmod}}&lt;br /&gt;
!Semantics and rationale&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!&amp;lt;code&amp;gt;appendonly&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;a&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Writing to file only allowed in append mode.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!&amp;lt;code&amp;gt;immutable&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;i&amp;lt;/code&amp;gt;&lt;br /&gt;
|&lt;br /&gt;
Prevents any change to file&amp;#039;s contents or metadata (except access time): file/directory cannot be written to, deleted, or renamed.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!&amp;lt;code&amp;gt;nodump&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;d&amp;lt;/code&amp;gt;&lt;br /&gt;
|File should be skipped by backup programs&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
!&amp;lt;code&amp;gt;nounlink&amp;lt;/code&amp;gt;&lt;br /&gt;
|style=&amp;quot;text-align:center&amp;quot; |&amp;lt;code&amp;gt;u&amp;lt;/code&amp;gt;&lt;br /&gt;
|Prevents removing the file, but allows other changes.&lt;br /&gt;
|-&lt;br /&gt;
&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Extended file attributes]]&lt;br /&gt;
* [[Hidden file and hidden directory]]&lt;br /&gt;
* [[Volume label]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist|refs=&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;pcmag-t&amp;quot;&amp;gt;{{cite web|title=Definition of: file attribute|url=https://www.pcmag.com/encyclopedia/term/file-attribute|work=[[PC Magazine]]|publisher=[[Ziff Davis]]|access-date=14 October 2020}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;computerhope-t&amp;quot;&amp;gt;{{cite web|title=File attributes|url=http://www.computerhope.com/jargon/f/fileattr.htm|work=Computer Hope|access-date=2 December 2012}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;IndianaUni-t&amp;quot;&amp;gt;{{cite web|title=In Windows, what are file attributes, and how can I change them?|work=Knowledge Base|publisher=[[Indiana University]]|access-date=2 December 2012|date=11 October 2011 |url=https://kb.iu.edu/d/aift}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;microsoft-full&amp;quot;&amp;gt;{{cite web |title=File Attribute Constants |url=https://docs.microsoft.com/en-us/windows/desktop/fileio/file-attribute-constants |work=[[MSDN]] |publisher=[[Microsoft]] |access-date=17 July 2018}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=pcmag-attrib.exe&amp;gt;{{cite web|title=Definition of: DOS Attrib|url=https://www.pcmag.com/encyclopedia_term/0%2C2542%2Ct%3DDOS+Attrib%26i%3D41730%2C00.asp|work=[[PC Magazine]]|publisher=[[Ziff Davis]]|access-date=2 December 2012|archive-date=2 March 2012|archive-url=https://web.archive.org/web/20120302041859/http://www.pcmag.com/encyclopedia_term/0%2C2542%2Ct%3DDOS+Attrib%26i%3D41730%2C00.asp|url-status=dead}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ref name=&amp;quot;hidden and readonly&amp;quot;&amp;gt;{{cite web|title=You cannot view or change the Read-only or the System attributes of folders in Windows Server 2003, in Windows XP, in Windows Vista or in Windows 7|url=http://support.microsoft.com/kb/326549|work=Microsoft Support|publisher=Microsoft|access-date=2 December 2012|date=31 May 2012}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
{{reflist|group=note}}&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [https://www.pcmag.com/encyclopedia_term/0,2542,t=DOS+Attrib&amp;amp;i=41730,00.asp Definition of: DOS Attrib] {{Webarchive|url=https://web.archive.org/web/20120302041859/http://www.pcmag.com/encyclopedia_term/0%2C2542%2Ct%3DDOS+Attrib%26i%3D41730%2C00.asp |date=2012-03-02 }} on [[PC Magazine]]&lt;br /&gt;
* {{webarchive |url=https://web.archive.org/web/20071017224738/http://bellevuelinux.org/hidden_file.html |date=October 17, 2007 |title=Hidden files in Unix-like operating systems }}&lt;br /&gt;
* [https://learn.microsoft.com/en-us/cpp/c-runtime-library/file-attribute-constants File attribute constants], in [[C (programming language)|C]](-[[Runtime library|runtime-library]]), by Microsoft Learn, 10/26/2022&lt;br /&gt;
* [https://learn.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants File Attribute Constants], in ([[Win32]]-)[[C++]], by Microsoft Learn, 06/09/2023&lt;br /&gt;
&lt;br /&gt;
{{Computer files}}&lt;br /&gt;
{{File systems}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:File attribute}}&lt;br /&gt;
[[Category:Computer file systems]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Nathan Hadley (Pigeon)</name></author>
	</entry>
</feed>