what is the opt folder?

Joined
Mar 15, 2006
Messages
1,262
Reaction score
31
Points
48
Your Mac's Specs
2015 Retina 4K iMac. Monterey. 8GB RAM. Crucial 500GB external SSD
located inside my HD folder is a folder called opt. what is this folder for? can it be deleted?

screen.jpg
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
/opt is used as an alternate to hidden folders /usr and /lib. It is used by independent software developers to avoid conflict with system folders. If you ever use MacPorts or HomeBrew, for example, common use modular scripts, configs, apps, etc will be in there.
 
Joined
Jan 1, 2009
Messages
16,378
Reaction score
4,731
Points
113
Location
Winchester, VA
Your Mac's Specs
MBP 16" 2023 (M3 Pro), iPhone 16 Pro, plus ATVs, AWatch, MacMinis (multiple)
I would recommend against deleting any part of the OS outside your own home folder. More than one poster here has tried that, and ended up with a very expensive brick that had to be rebuilt to factory fresh before it could work again.
 
Joined
Jul 30, 2009
Messages
7,356
Reaction score
341
Points
83
Location
Wisconsin
Your Mac's Specs
Mac Mini (Late 2014) 2.6GHz Intel Core i5 Memory: 8GB 1600MHz DDR3
Any idea what OPT stands for?
I'm sure a web search would turn up dozens of things with that acronym.
 
Joined
Dec 11, 2010
Messages
1,808
Reaction score
40
Points
48
Location
Chicago
Your Mac's Specs
late 2012 mini w/SSD
I think it's "options or optional."
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,640
Reaction score
171
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
It is optional. It is normally used by third party software vendors, as was previously mentioned.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,033
Reaction score
2,438
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
Mac OS's Darwin Kernel based on its BSD roots and other Unix OS' all follow a particular structure for the directories.

As correctly recommended by Jake above, DO NOT delete any file/folder that is outside of your home folder. The ONLY exception to this is the /Applications folder where you install your applications and you can delete them from there.
 
Joined
Jul 12, 2018
Messages
38
Reaction score
0
Points
6
Location
London
Your Mac's Specs
2016 Apple Macbook Air
These 'opt' folders well represent 'optimization'. If you have installed [MacPorts|http://www.macports.org> this will create an opt folder. They're great Unix programs and I suggest that don't delete it or just leave it alone.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,033
Reaction score
2,438
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
These 'opt' folders well represent 'optimization'. If you have installed [MacPorts|http://www.macports.org> this will create an opt folder. They're great Unix programs and I suggest that don't delete it or just leave it alone.

No, not optimization. But rather "optional", meaning the OS didn't care to put anything in there but others can.
 
Joined
May 21, 2012
Messages
11,294
Reaction score
1,582
Points
113
Location
Southern New England
Your Mac's Specs
2024 M4 14" MBP, iPhone 16 Pro Max, Watch S7 & Watch S9, AirPods Pro 1
In High Sierra, I don't have an "opt" folder on my drive.
 

Raz0rEdge

Well-known member
Staff member
Moderator
Joined
Jul 17, 2009
Messages
16,033
Reaction score
2,438
Points
113
Location
MA
Your Mac's Specs
2022 Mac Studio M1 Max, 2023 M2 MBA
I forget if my 2017 MBP came with High Sierra or if I upgraded it (since I got it in December, my guess is that it came with it) and I do have the /opt folder.
 

rman


Retired Staff
Joined
Dec 24, 2002
Messages
12,640
Reaction score
171
Points
63
Location
Los Angeles, California
Your Mac's Specs
14in MacBook Pro M1 Max 32GB 2TB
I have seen /opt in AIX, Solaris, and most linux systems
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top