Forrest logo
back to the xattr tool

xattr:tldr:55369

xattr: Delete an attribute from a given file.
$ xattr -d ${com-apple-quarantine} ${file}
try on your machine

The command xattr -d ${com-apple-quarantine} ${file} is used to remove a specific attribute from a file in a Mac operating system.

Here's a breakdown of the command:

  • xattr: It is a command-line utility in Mac OS X that deals with extended attributes of files. Extended attributes are metadata associated with files, which can include information like quarantine status, file origin, etc.

  • -d: This is an option used with the xattr command to delete or remove an extended attribute from a file.

  • ${com-apple-quarantine}: This is the name of the extended attribute that is being removed. In this case, it is specifically ${com-apple-quarantine}, which is usually associated with the quarantine status of a file. The quarantine attribute is set by the operating system when a file is downloaded from the internet and is used as a security precaution to warn users about potentially unsafe files.

  • ${file}: This is the name of the file from which the extended attribute will be removed. You need to replace ${file} with the actual file name or path you want to remove the attribute from.

So, the command xattr -d ${com-apple-quarantine} ${file} removes the quarantine attribute from the specified file in a Mac operating system.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the xattr tool