On Windows Me and Windows NT/2000/XP/2003 systems,
ls supports the
-X option, which displays the extended attributes of the file(s). This description is shown beneath the long output format already described.
For
ls -X A or
ls -X a, the display format is:
Attributes: attributelist
where
attributelist is a comma-separated list of one or more of:
Verbose Terse Archive A Compressed C Directory D Encrypted E Hidden H Normal N Offline O ReparsePoint R ReadOnly RO Sparse SP System S Temporary T
For
ls -X D or
ls -X d, the display format is:
ACE: perm usergrpname ace_flags accessmode
where:
perm is one of Allow or Deny.
usergrpname is the user or group name as taken from the Windows NT/2000/XP/2003 Security Access Manager registry. Any spaces embedded in the name are replaced by + characters.
ace_flags is a comma-separated list of the flags for Discretionary Access Control Entities:
Verbose Terse ContainerInheritAce CIA FailedAccessAceFlag FAAF InheritOnlyAce IOA NoPropagateInheritAce NPIA ObjectInheritAce OIA SuccessAccessAceFlag SAAF
If no flags are set,
ls displays a single -. ACE stands for Access Control Entry; for more information, see your Windows NT/2000/XP/2003 system documentation.
accessmode is the set of access permissions (if Allow is displayed) or restrictions (if Deny is displayed) for this ACE. These can be any or none of the following:
Verbose Terse Note Read R Read file data or list directory entries Write W Write file data or create new file in directory eXecute X Execute a file or traverse a directory Append A Append data to a file or add subdirectory DeleteChild DC For a directory, delete entries in directory ReadEa RE Read extended attributes WriteEa WE Write extended attributes ReadAttr RA Read attributes WriteAttr WA Write attributes Delete D Delete access ReadControl RC Read access to the owner, group, and discretionary access control list (ACL) of the security descriptor WriteDac WD Write access to the owner, group, and discretionary access control list (ACL) of the security descriptor takeOwnership O Write access to the owner Synchronize S Synchronize access
On Windows systems,
ls treats files and directories marked with the
hidden attribute like POSIX and UNIX file names beginning with . (period).
The
-A,
-b,
-f,
-g,
-L,
-m,
-n,
-o,
-p,
-s,
-X, and
-x options are extensions to the POSIX and XPG.4 standard.
The
-X option is specific to the Windows NT/2000/XP/2003 and Windows Me versions of
ls.