61
votes

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

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

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.

7
What exactly was the question?Zaz

7 Answers

90
votes

*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).

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.

23
votes

*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.

Wikipedia:*nix actually redirects to 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.

10
votes

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

See also the UNIX-like Wikipedia page.

8
votes

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

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


1: Portable Operating System Interface [for Unix]

5
votes

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

5
votes

"*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.

3
votes

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".