Forrest logo
back to the xattr tool

xattr:tldr:d92c3

xattr: Delete all extended attributes from a given file.
$ xattr -c ${file}
try on your machine

The command "xattr -c ${file}" removes all extended attributes from a specified file.

Here's a breakdown of the command:

  • "xattr": It stands for "extended attributes" and is a command-line utility in Unix-like operating systems (e.g., macOS) used to work with extended attributes of files.

  • "-c": It is the option or flag used with the "xattr" command, which specifies that the extended attributes of the file should be cleared or removed.

  • "${file}": It is a placeholder representing the path or name of the file on which you want to remove the extended attributes. You'd replace "${file}" with the actual file name or path when using the command.

Together, the command "xattr -c ${file}" instructs the system to clear or remove all extended attributes associated with the specified file.

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