macOS

xattr

CautionExtended attributes

xattr -d com.apple.quarantine <file>

Lists/strips quarantine flags — the fix for 'app is damaged' warnings (verify the source first).

Examples

  • xattr -d com.apple.quarantine ./Tool.appStrip quarantine to allow launch

Syntax

xattr [-l] [-d attr] <file>

Before you run it

Unquarantining unknown apps is risky.

Used when you see

Mac app won't open
3
Strip quarantine only if you trust the sourceOnly for software you can vouch for.
See the whole flow →
USB full of '._' junk files
2
Inspect/strip xattrs on stragglers
See the whole flow →

Related commands

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store