dslreports logo
site
 
    All Forums Hot Topics Gallery
spc

spacer




how-to block ads


Search Topic:
uniqs
2237
share rss forum feed


aefstoggaflm
Open Source Fan
Premium
join:2002-03-04
Bethlehem, PA
kudos:7

Mac OS has Unix/Linux code in it?

I have heard/read that on the Mac OS that there is Unix/Linux code in it.

Is that true?

Thank you
--
Please use the "yellow (IM) envelope" to contact me and please leave the URL intact.



donoreo
Premium
join:2002-05-30
North York, ON

1 recommendation

Mac OSX is based on a BSD version of UNIX.

From Wikipedia:

OS X is based upon the Mach kernel. Certain parts from FreeBSD's and NetBSD's implementation of Unix were incorporated in NeXTSTEP, the core of Mac OS X. NeXTSTEP was the graphical, object-oriented, and UNIX-based operating system developed by Steve Jobs' company NeXT after he left Apple in 1985
--
The irony of common sense, it is not that common.
I cannot deny anything I did not say.
A kitten dies every time someone uses "then" and "than" incorrectly.
I mock people who give their children odd spelling of names.



dellsweig
Extreme Aerobatics
Premium,MVM
join:2003-12-10
Campbell Hall, NY
kudos:1

1 recommendation

said by donoreo:

Mac OSX is based on a BSD version of UNIX.

From Wikipedia:

OS X is based upon the Mach kernel. Certain parts from FreeBSD's and NetBSD's implementation of Unix were incorporated in NeXTSTEP, the core of Mac OS X. NeXTSTEP was the graphical, object-oriented, and UNIX-based operating system developed by Steve Jobs' company NeXT after he left Apple in 1985

Being based on the BSD Unix is one of the reasons security and malware have never been an issue with OSX
--
Nothin' left to do but smile smile smile


markofmayhem
Why not now?
Premium
join:2004-04-08
Pittsburgh, PA
kudos:5
Reviews:
·Comcast

1 recommendation

said by dellsweig:

said by donoreo:

Mac OSX is based on a BSD version of UNIX.

From Wikipedia:

OS X is based upon the Mach kernel. Certain parts from FreeBSD's and NetBSD's implementation of Unix were incorporated in NeXTSTEP, the core of Mac OS X. NeXTSTEP was the graphical, object-oriented, and UNIX-based operating system developed by Steve Jobs' company NeXT after he left Apple in 1985

Being based on the BSD Unix is one of the reasons security and malware have never been an issue with OSX

Mac OS X is UNIX 03 certified:
»www.opengroup.org/openbrand/register/

As for malware, there is no reason to change someone's religion.
--
Show off that hardware: join Team Discovery and Team Helix


leibold
Premium,MVM
join:2002-07-09
Sunnyvale, CA
kudos:9
Reviews:
·SONIC.NET

1 recommendation

reply to aefstoggaflm

Mac OS X consists of a core operating system called Darwin as well as a graphical user environment and applications.

The core OS (Darwin) contains a kernel, shell and utilities (command line tools) much of which were derived from *BSD Unix.
Darwin itself is a certified Unix implementation and released as open source under the Apple Public Source License (this means Darwin is definitely full of Unix code ).

I don't believe that there is any Linux code in Darwin if you use the term Linux to strictly refer to the kernel itself. There is however a strong possibility that there is common code in some of the utilities used in Darwin and many Linux distributions (using the more loose definition of Linux to refer to the entire OS). Chances are however that in many cases this common code can be traced back to a *BSD heritage.
--
Got some spare cpu cycles ? Join Team Helix or Team Starfire!



dennismurphy
Put me on hold? I'll put YOU on hold
Premium
join:2002-11-19
Parsippany, NJ
kudos:3
Reviews:
·Verizon FiOS

1 recommendation

reply to aefstoggaflm

Mac OS X does not just "contain Unix code" - it IS Unix. Full stop. It's a Unix system, period.

»www.levenez.com/unix/unix.pdf

Just what it derives (BSD, V6, etc.) from depends on how far back you want to go.



wmcbrine
213 251 145 96

join:2002-12-30
Laurel, MD
kudos:1
reply to leibold

said by leibold:

There is however a strong possibility that there is common code in some of the utilities used in Darwin and many Linux distributions (using the more loose definition of Linux to refer to the entire OS).

There's tons of GNU stuff in both, of course.

To me, the command-line environment in OS X has felt increasingly Linux-like over the years.
--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


DarkSithPro

join:2005-02-12
Tempe, AZ
kudos:2
reply to aefstoggaflm

Curious, are there any simple programs out there that can run on OS-X and Linux?



leibold
Premium,MVM
join:2002-07-09
Sunnyvale, CA
kudos:9
Reviews:
·SONIC.NET

said by DarkSithPro:

Curious, are there any simple programs out there that can run on OS-X and Linux?

Binary compatibility is a separate issue, but much software written for Unix platforms will compile and run on OS X as well as Linux.

The same is not always true in reverse (Darwin or Linux specific functionality may not be present on other Unix and Unix-like operating systems).

As long as you consider shell scripts simple programs then it is definitely possible to write programs that will run unchanged on most Unix platforms (including OS-X and Linux).
--
Got some spare cpu cycles ? Join Team Helix or Team Starfire!


Goobster

@sherwin.com
reply to wmcbrine

said by wmcbrine:

To me, the command-line environment in OS X has felt increasingly Linux-like over the years.

To say that a Unix system has become increasingly "linux-like" is hilarious to me. Unix being the chicken that laid the penguin egg.


wmcbrine
213 251 145 96

join:2002-12-30
Laurel, MD
kudos:1

said by Goobster :

said by wmcbrine:

To me, the command-line environment in OS X has felt increasingly Linux-like over the years.

To say that a Unix system has become increasingly "linux-like" is hilarious to me. Unix being the chicken that laid the penguin egg.

Spare me the patronizing. I'm well aware of the history. The command line of the average Linux distro has a certain flavor, and that was different from the flavor of earlier versions of OS X. Later versions of OS X have felt progressively more like Linux to me. That's not me being a stupid noob and thinking that Unix is a copy of Linux.
--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


leibold
Premium,MVM
join:2002-07-09
Sunnyvale, CA
kudos:9
Reviews:
·SONIC.NET
reply to Goobster

said by Goobster :

To say that a Unix system has become increasingly "linux-like" is hilarious to me.

I understand perfectly where you are coming from but I also remember when Linux started to become seriously popular (for very good reasons) that all of a sudden the traditional Unix vendors bend over backwards to add Linux compatibility to their proprietary platforms.

Think of Linux as one of those examples where the student surpasses its mentor/teacher.
--
Got some spare cpu cycles ? Join Team Helix or Team Starfire!


rexbinary
Mod King
Premium
join:2005-01-26
Plano, TX
Reviews:
·Verizon FiOS
reply to aefstoggaflm

Here is a tech brief you might like:

»www.apple.com/media/us/osx/2012/···2011.pdf

While not directly related to your question, Mac OS X also contains a lot of open source software as well:

»www.apple.com/opensource/
--
Verizon FiOS subscriber since 2005 | Mac owner since 1990 | Fedora user since 2006 | CentOS user since 2007 | "Anyone who is unwilling to learn is entitled to absolutely nothing." - graysonf | EDIT: I seldom post without an edit.



intok

join:2012-03-15

1 recommendation

reply to aefstoggaflm

You didn't know OS X was BSD based? They still maintain Darwin BSD and are a using tons of OSS software. If you have to run OS X you should add the Darwinports Repo to it so that you can get most Linux/BSD software working on it when you need it. Theres even Wine for OS X.

Heres some links that should be interesting for you:
»ssl.apple.com/opensource/
»en.wikipedia.org/wiki/Darwin_(op···_system)

Apple's first foray into Unix was A/UX, they should have never let it die. »en.wikipedia.org/wiki/A/UX



intok

join:2012-03-15
reply to DarkSithPro

said by DarkSithPro:

Curious, are there any simple programs out there that can run on OS-X and Linux?

»www.macports.org/ports.php

The MacPorts Project currently distributes 17010 ports, organized across 86 different categories and available below for viewing.



rexbinary
Mod King
Premium
join:2005-01-26
Plano, TX
Reviews:
·Verizon FiOS
reply to intok

said by intok:

Apple's first foray into Unix was A/UX, they should have never let it die. »en.wikipedia.org/wiki/A/UX

MkLinux was pretty cool too.

»en.wikipedia.org/wiki/MkLinux


intok

join:2012-03-15

I never got around to that one, I first tried YellowDog on my old PPC Macs, and then went to Ubuntu until the community effort died, The one old PPC box I keep going usually runs Debian, only loading Mac OS 9.2.2 or OS X 10.4.11 or 10.5.8 for gaming or video editing. Though I can retier it fomr that duty at any time these days with Lightworks ported.

A heavily modified old 2002 Quicksilver G4 Dual 1.8Ghz Apollo8's w/ a vBios flashed 7800GS AGP card and 3 Gb of PC133(almost impossible to find these days, extremely rare in the non server versions even when it was new). It's held back by it's system and 4x AGP bus speeds, but benchmarks show it trading blows with the early Intel iMacs in several benchmarks.

Sucks PPC was killed off in the consumer space, for many tasks it was by far the superior architecture of it's day.



J E F F
Whatta Ya Think About Dat?
Premium
join:2004-04-01
Kitchener, ON
kudos:1
reply to aefstoggaflm

Here is something crazy, BlackBerrys new OS, BB10, uses QNX as their OS, QNX is Unix-based.



dennismurphy
Put me on hold? I'll put YOU on hold
Premium
join:2002-11-19
Parsippany, NJ
kudos:3
Reviews:
·Verizon FiOS

1 edit

1 recommendation

reply to wmcbrine

said by wmcbrine:

Spare me the patronizing. I'm well aware of the history. The command line of the average Linux distro has a certain flavor, and that was different from the flavor of earlier versions of OS X. Later versions of OS X have felt progressively more like Linux to me. That's not me being a stupid noob and thinking that Unix is a copy of Linux.

Could that be because the default shell changed from tcsh to bash?

(Which was a welcome change since I could remove):
if (-x /bin/bash) then
  exec /bin/bash
endif
 

from my .cshrc ... Sure, I could've changed my shell in Netinfo, but this was a lot easier and a behavior I picked up in the Thall Shalt Not Change Root's Shell Away From /sbin/sh On Solaris days :)


wmcbrine
213 251 145 96

join:2002-12-30
Laurel, MD
kudos:1

said by dennismurphy:

Could that be because the default shell changed from tcsh to bash?

That was a big part of it, but there were other things, too. More GNU utils showed up...
--
09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0


mxmumtuna

join:2000-08-11
Ashburn, VA
Reviews:
·Verizon FiOS

said by wmcbrine:

said by dennismurphy:

Could that be because the default shell changed from tcsh to bash?

That was a big part of it, but there were other things, too. More GNU utils showed up...

Not enough, unfortunately. I don't know how to live life without GNU tar, coreutils and findutils.