/library/containers duplicate entries

I was looking at my /library/containers folder last night and noticed that several subdirectories of the same name were present. They are varying sizes. Some contain data and some just aliases. It's true with Mail, Markup, Agenda (which I removed from my computer a few weeks ago), and a number of programs I have installed. When I open the folder, most of them contain what appears in the second picture.


Does anyone know if this a) is supposed to be this way and b) if not, what to do about it?


Thanks!



MacBook Air 13″, macOS 11.1

Posted on Jan 23, 2021 5:12 AM

Reply
Question marked as Top-ranking reply

Posted on Jan 23, 2021 7:54 AM

bogert wrote:

Thanks. It's a bit weird, but if I doesn't hurt performance or take up an inordinate amount of disk space I am inclined to leave it alone as you suggest.

First of all, this is a system folder. You should not be in that folder at all. You should definitely leave it alone. There is no change you can make in that folder that would not lead to catastrophic damage and data loss.


The macOS operating system is the most complicated operating system ever made. Every year, it gets worse. I have seen numerous cases where people try to dig into the internals to figure out what is going on and quite literally lost touch with reality. I am not exaggerating.


Apple, of course, knows how complicate all of this is. They have made the Finder and other graphical user interfaces so that they display a very simplified view of this complex file system, to avoid confusing people. That is what you are seeing here. But when you try to use the Finder to view a system folder like this, you risk even greater confusion because the Finder isn't supposed to be used on these system folders at all.


In fact, there are no duplicates in this folder. The Finder has the ability to display alternate names for files and folders. For example, the actual name of the "Preview" app is "Preview.app". You don't see the ".app" part because it is hidden by default. If you had your system configured to use a French user interface, it would show up as "Aperçu" instead. There is metadata inside these special folders (called "bundles") that controls the "human version" of the name. In most cases, Anglophones are privileged because Apple developers are Anglophones and they more or less see files the way they really are. This is a case where you see the file system like the rest of the world does - faked out. You could explore this folder using the Terminal (please see my note above about catastrophic damage and data loss - that goes double for the Terminal). But if you are careful, then you would see all of the real file names.

3 replies
Question marked as Top-ranking reply

Jan 23, 2021 7:54 AM in response to bogert

bogert wrote:

Thanks. It's a bit weird, but if I doesn't hurt performance or take up an inordinate amount of disk space I am inclined to leave it alone as you suggest.

First of all, this is a system folder. You should not be in that folder at all. You should definitely leave it alone. There is no change you can make in that folder that would not lead to catastrophic damage and data loss.


The macOS operating system is the most complicated operating system ever made. Every year, it gets worse. I have seen numerous cases where people try to dig into the internals to figure out what is going on and quite literally lost touch with reality. I am not exaggerating.


Apple, of course, knows how complicate all of this is. They have made the Finder and other graphical user interfaces so that they display a very simplified view of this complex file system, to avoid confusing people. That is what you are seeing here. But when you try to use the Finder to view a system folder like this, you risk even greater confusion because the Finder isn't supposed to be used on these system folders at all.


In fact, there are no duplicates in this folder. The Finder has the ability to display alternate names for files and folders. For example, the actual name of the "Preview" app is "Preview.app". You don't see the ".app" part because it is hidden by default. If you had your system configured to use a French user interface, it would show up as "Aperçu" instead. There is metadata inside these special folders (called "bundles") that controls the "human version" of the name. In most cases, Anglophones are privileged because Apple developers are Anglophones and they more or less see files the way they really are. This is a case where you see the file system like the rest of the world does - faked out. You could explore this folder using the Terminal (please see my note above about catastrophic damage and data loss - that goes double for the Terminal). But if you are careful, then you would see all of the real file names.

Jan 23, 2021 5:26 AM in response to bogert

bogert wrote:

I was looking at my /library/containers folder last night and noticed that several subdirectories of the same name were present. They are varying sizes. Some contain data and some just aliases. It's true with Mail, Markup, Agenda (which I removed from my computer a few weeks ago), and a number of programs I have installed. When I open the folder, most of them contain what appears in the second picture.

Does anyone know if this a) is supposed to be this way and b) if not, what to do about it?

Thanks!

https://discussions.apple.com/content/attachment/fc90f86e-8fb9-47ef-88c1-dae1b9a8aeb7


https://discussions.apple.com/content/attachment/1bc35d82-8d22-4269-9c91-a55199dd27da


The complete path

~/Library/Container


This is your User Library, who knows what anomalies are created when upgrading and how the apfs handles all this.

Some ttimes it is not worth poking the bear— delete all of them or some of them and see what happens. Report back if you have to restore form backup....


I see the same duplicates . Personally I would not worry about this...there is next to nothing there.



This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

/library/containers duplicate entries

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.