Linux “opt”是什么意思(如在“opt”目录中)?是缩写吗?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12649355/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
What does "opt" mean (as in the "opt" directory)? Is it an abbreviation?
提问by John Assymptoth
What does "opt" mean (as in the "opt" directory)? I commonly see this directory in Unix systems with development tools inside.
“opt”是什么意思(如在“opt”目录中)?我经常在 Unix 系统中看到这个目录,里面有开发工具。
Is it an abbreviation?
是缩写吗?
采纳答案by Stephen C
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.
在过去,“/opt”被 UNIX 供应商(如 AT&T、Sun、DEC 和第 3 方供应商)用来保存“Option”包;即您可能已支付额外费用的包裹。我不记得在 Berkeley BSD UNIX 上看到过“/opt”。他们将“/usr/local”用于您自己安装的东西。
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.
但当然,不同目录的真正“含义”总是有些模糊。这可以说是一件好事,因为如果这些目录具有精确(并且严格执行)的含义,您最终会得到大量不同的目录名称。
回答by Justin808
OPT
ional
OPT
意欲的
It holds optional software and packages that you install that are not required for the system to run.
它包含您安装的系统运行不需要的可选软件和软件包。
回答by Dan
回答by digidigo
It is an abbreviation for 'optional' , used for optional software in some distros.
它是 'optional' 的缩写,用于某些发行版中的可选软件。
回答by ghoti
Add-on software packages.
附加软件包。
See http://www.pathname.com/fhs/2.2/fhs-3.12.htmlfor details.
有关详细信息,请参阅http://www.pathname.com/fhs/2.2/fhs-3.12.html。
Also described at Wikipedia.
维基百科上也有描述。
Its use dates back at least to the late 1980s, when it was a standard part of System V UNIX. These days, it's also seen in Linux, Solaris (which is SysV), OSX Cygwin, etc. Other BSD unixes (FreeBSD, NetBSD, etc) tend to follow other rules, so you don't usually see BSD systems with an /opt unless they're administered by someone who is more comfortable in other environments.
它的使用至少可以追溯到 1980 年代后期,当时它是 System V UNIX 的标准部分。现在,它也出现在 Linux、Solaris(即 SysV)、OSX Cygwin 等中。其他 BSD unix(FreeBSD、NetBSD 等)倾向于遵循其他规则,因此您通常不会看到带有 /opt 的 BSD 系统除非他们由在其他环境中更舒适的人管理。