Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does "opt" mean (as in the "opt" directory)? Is it an abbreviation? [closed]

What does "opt" mean (as in the "opt" directory)? I commonly see this directory in Unix systems with development tools inside.

Is it an abbreviation?

like image 297
John Assymptoth Avatar asked Sep 29 '12 02:09

John Assymptoth


People also ask

What does opt directory mean?

The FHS defines /opt as “reserved for the installation of add-on application software packages.” In this context, “add-on” means software that is not part of the system; for example, any external or third-party software.

What does opt in mean software?

Definition: An opt-in is a form of consent given by web users, acknowledging interest in a product or service and authorizing a third party to contact them with further information.

Is opt a root directory?

Thus, if you've got root ( / ) and /home , and no other partitions, your /opt directory is simply a directory on root ( / ). Likewise for /tmp , /sbin , and anything else.

What is opt in Ubuntu?

/opt :- This directory is reserved for all the software and add-on packages that are not part of the default installation. /usr/local :- The /usr/local hierarchy is for use by the system administrator when installing software locally. It needs to be safe from being overwritten when the system software is updated.


1 Answers

In the old days, "/opt" was used by UNIX vendors like AT&T, Sun, DEC and 3rd-party vendors to hold "Option" packages; i.e. packages that you might have paid extra money for. I don't recall seeing "/opt" on Berkeley BSD UNIX. They used "/usr/local" for stuff that you installed yourself.

But of course, the true "meaning" of the different directories has always been somewhat vague. That is arguably a good thing, because if these directories had precise (and rigidly enforced) meanings you'd end up with a proliferation of different directory names.

The Filesystem Hierarchy Standard says this about "/opt/*":

"/opt is reserved for the installation of add-on application software packages."

By contrast it says this about "/usr/local/*":

"The /usr/local hierarchy is for use by the system administrator when installing software locally."

These days, "/usr/local/*" is typically used for installing software that has been built locally, possibly after tweaking configuration options, etcetera.

like image 68
Stephen C Avatar answered Sep 20 '22 06:09

Stephen C