Install the complete package with local command reference and every published mode.
install attrattrreads properties of files and directories
path, type, permissions, access, size, mime, dimensions and modified. Ask for one field with
Run
attr [path [key]] [-x|-d|-s <value>]attrshow portable metadata for the current directory
attr <path>show extended keys or portable metadata
attr <path> <key>show a portable field or extended-attribute value
attr <path> <key> : <value>set raw text for an extended attribute
-xshow the selected value as hexadecimal
-s <value>set a text value for an extended attribute
-ddelete an extended attribute
Portable field names are case-insensitive, so MIME and mime both work. Real xattr keys preserve their case. -x displays a value as hexadecimal; -s and : write an extended attribute, while -d removes one. These operations require filesystem xattr support and cannot modify portable fields.
Use sandbox models hosting without xattr support, so write and delete examples show an availability warning rather than a fictional success.
Run the prepared examples directly on the page. Their results are prebuilt and shown in the browser; no terminal command is executed on the server.
The XML extension does not change the filesystem checks; MIME information is added only when PHP can identify it.
Install the current compatible version. Choose Base for the complete feature set or Minimum for the reduced package; use upgrade to update a module that is already installed.
Base and Minimum are two packages of the same current module release, not separate command versions.
Install the complete package with local command reference and every published mode.
install attrInstall the reduced package. Local reference is omitted;
install attr -mInstall exactly this published version.
install attr -v 1.3.2Ask upgrade to check compatibility and replace the installed block only when needed.
upgrade attrRemove the extension block while leaving the core and unrelated modules intact.
install attr -uExamples are copyable command lines, not actions executed by this website. Review paths, permissions and destructive flags before running them on a real project.
attrPath [path] sandbox
Type [type] directory
Permissions [permissions] 0755
Access [access] rwx
Modified [modified] 2026-08-11 18:40:00The XML extension does not change the filesystem checks; MIME information is added only when PHP can identify it.
attr \sandbox\feed.xmlPath sandbox/feed.xml
Type file
Permissions 0644
Access rw-
Size 127 B
MIME application/xml
Modified 2026-08-11 18:40:00Recognized images add pixel dimensions to the same portable file metadata.
attr \sandbox\feed.xml MIMEtext/xmlDirectories keep their own filesystem type and omit file-only size, MIME and image fields.
attr \sandbox\feed.xml permissions -x30363434attr \sandbox\feed.xml permissions -s 0600Portable attributes are read-onlyattr \sandbox\feed.xml user.note : reviewedExtended attributes are unavailable; portable attributes are read-onlyattr \sandbox\feed.xml user.note -s reviewedExtended attributes are unavailable; portable attributes are read-onlyattr \sandbox\feed.xml user.note -dExtended attributes are unavailable; portable attributes are read-onlyattr \sandbox\feed.xml user.note -xExtended attributes are unavailable; portable attributes are read-onlyattr \sandbox\feed.xml permissions -dPortable attributes are read-onlyattr \sandbox\images\icon.svg dimensionsAttribute not foundattr \sandbox\missing.txtPath not foundsandbox/feed.xmlThe example uses a file or directory from the protected /sandbox/ documentation workspace.
<?xml version="1.0" encoding="UTF-8"?>
<feed>
<title>lil-sandbox</title>
<entry id="1">Example XML content</entry>
</feed>
MIME, Type and other portable selectors now accept any letter case. Real extended-attribute keys keep their exact names.