Table of Contents
This article will show you how to Remove Extended Attributes on Mac. Imagine you downloaded a file from a website or especially a Google Drive shared folder. When you select the same file on your local Macintosh HD and use the “Command + I” command on your Mac’s keyboard, you see a long list of gibberish URLs where the file you downloaded came from in the “Where from” section. Extended file attributes are file system features that let users link computer files with metadata that is not interpreted by the filesystem.
Regular file attributes, on the other hand, have a purpose that is clearly defined by the filesystem, such as permissions or records of the creation and modification times. Unlike forks, which can usually be as big as the maximum file size, extended attributes are generally limited to a size that is much smaller than the maximum file size. On a Mac, extended file attributes like the quarantine state that macOS gives to files or metadata can be a problem.
How to Remove Extended Attributes
- Find the extended attribute you want to remove from the file using the previous step, in this example let’s assume it’s “kMDItemIsScreenCapture”
- Use xattr with the -d flag on the file like so:
xattr -d com.apple.metadata:kMDItemIsScreenCapture ~/Desktop/samplefile.jpg
- Hit Return to strip the defined extended attribute from the file as specified by the path
What Are Extended File Attributes?
Extended file characteristics are pieces of information that can be added to a computer file to give more information about the file or its contents. Unlike system attributes like a file’s extension or whether or not it can be changed, many extended file attributes are actually metadata that is set by the user or the programme. Most of the time, the operating system doesn’t care about this metadata. If you want to know more information about this Visit Official Apple Support site.
The creator of a file, the name of a department that has something to do with the file’s content, or, in some cases, data that the operating system can use if it’s there, like where the file’s icon should be shown, are all examples of extended file attributes. Not all file systems, storage devices, or operating systems support extended file attributes.
This means that they might not always be transferred with a file and might not always be able to be retrieved by a system other than where the file was made. Different file systems have different ways of setting up extended file properties. Some use a single system file to store metadata, while others store the information in the file header.
FAQs
Extended attributes are random pieces of data that are stored with a file but are not part of the file system attributes (like the time the file was last changed or its size). The information is often a UTF-8 string that ends with a null character, but it can also be any binary data.
Extended file attributes are file system features that let users link computer files with metadata that is not interpreted by the filesystem. Regular file attributes, on the other hand, have a purpose that is clearly defined by the filesystem, such as permissions or records of the creation and modification times.