Linux *nix 是什么意思?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4715374/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-05 02:30:40  来源:igfitidea点击:

What is the meaning of *nix?

rubylinuxunixoperating-system

提问by Cristiano Fontes

What is the meaning of *nix, and what is its relation with Ruby?

*nix 是什么意思,它和 Ruby 有什么关系?

Just saw that in an interview question... I think there is something to do with UNIX distros, but I am not sure.

刚刚在面试问题中看到...我认为这与 UNIX 发行版有关,但我不确定。

Could not find it here or in the Wikipedia, so I am asking.

在此处或维基百科中找不到它,所以我在问。

What is the meaning ?

什么意思 ?

And what is its relation with Ruby ? because the question was about Ruby.

它与 Ruby 有什么关系?因为问题是关于 Ruby 的。

采纳答案by DSimon

*nix just means operating systems that are like the old workhorse Unix. Some examples include Linux, FreeBSD, and Mac OS X (its kernel, Darwin, is based on BSD).

*nix 只是意味着类似于旧主力 Unix 的操作系统。一些示例包括 Linux、FreeBSD 和 Mac OS X(其内核 Darwin 基于 BSD)。

The main relation between *nix and Ruby is just a pragmatic one; most Ruby developers seem to prefer to work on Unix-like OSes (typically Linux or Mac OS X). There's no official relationship, and it's quite possible to work with Ruby on non-*nix OSes like Windows.

*nix 和 Ruby 之间的主要关系只是一种务实的关系;大多数 Ruby 开发人员似乎更喜欢在类 Unix 操作系统(通常是 Linux 或 Mac OS X)上工作。没有官方关系,而且很有可能在非 *nix 操作系统(如 Windows)上使用 Ruby。

回答by Satya

It means the unix-like family of OSes. No relation to Ruby.

这意味着类 Unix 的操作系统家族。与 Ruby 无关。

回答by peoro

*nix is a general term to refer to the whole family of Unices, to the operating systems that follow the POSIX1standard.

*nix 是一个通用术语,指的是整个 Unices 家族,指的是遵循 POSIX 1标准的操作系统。

Ruby is a programming language, there's no general relationship between the two.

Ruby 是一种编程语言,两者之间没有一般关系。



1: Portable Operating System Interface [for Unix]

1: 便携式操作系统接口 [for Unix]

回答by Ignacio Vazquez-Abrams

"*nix" refers to the Unix family of operating systems and its FOSS variants (Linux, FreeBSD, etc.). They have a different API than Windows, so any programming or scripting language that runs on them will have slightly different behavior and capabilities than on Windows.

“*nix”指的是 Unix 系列操作系统及其 FOSS 变体(Linux、FreeBSD 等)。它们的 API 与 Windows 不同,因此在它们上运行的任何编程或脚本语言的行为和功能都与 Windows 上略有不同。

回答by Andy Thomas

It's an abbreviation for UNIX-like operating systems, including LINUX.

它是类 UNIX 操作系统(包括 LINUX)的缩写。

See also the UNIX-likeWikipedia page.

另请参阅类 UNIX维基百科页面。

回答by Zaz

*nix means UNIX-like; it is an operating system that behaves in a manner similar to that of a UNIX operating system without necessarily conforming to the Single UNIX Specification.

*nix 表示类 UNIX;它是一种运行方式类似于 UNIX 操作系统的操作系统,但不一定符合单一 UNIX 规范

Wikipedia:*nixactually redirects to Wikipedia:Unix-like.

Wikipedia:*nix实际上重定向到Wikipedia:Unix-like

As for Ruby's connection to *nix, Ruby was developed mostly on GNU/Linux by the open-source community, so it may be something to do with Ruby running better on *nix systems or Ruby developers preferring to work on *nix systems.

至于 Ruby 与 *nix 的关系,Ruby 主要是由开源社区在 GNU/Linux 上开发的,所以这可能与 Ruby 在 *nix 系统上运行得更好或者 Ruby 开发人员更喜欢在 *nix 系统上工作有关。

回答by Manjeet Brar

A Unix-like (sometimes referred to as UN*X or *nix) operating system is one that behaves in a manner similar to a Unix system, while not necessarily conforming to or being certified to any version of the Single UNIX Specification. A Unix-like application is one that behaves like the corresponding Unix command or shell. There is no standard for defining the term, and some difference of opinion is possible as to the degree to which a given operating system or application is "Unix-like".

类 Unix(有时称为 UN*X 或 *nix)操作系统的行为方式与 Unix 系统类似,但不一定符合或获得单一 UNIX 规范的任何版本的认证。类 Unix 应用程序的行为类似于相应的 Unix 命令或 shell。没有定义该术语的标准,对于给定的操作系统或应用程序“类 Unix”的程度,可能会有一些不同的意见。