Unix vs Linux

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments

So many people are so keen to narrate this well known story, more or less well, more or less precisely, often with clearly wrong titles like 'Unix vs Linux',or 'difference between Unix and Linux', still no project eager enough to take up code, study it seriously, compare Unix kernel and userland with Linux, GNU and the other userland choices currently available for Linux, make a comparison between the latter and current BSDs', Darwin's and Illumos' kernels and userlands, finally come up with thorough and objective report underlining technical differences in structure, design, security, code quality, performance, coherence, stability, portability, easiness to maintain, possible implementations....

That would be a true Linux vs Unix. Everything else is a tale for kids.

Side Note: wikipedia contains 2 great entries about 'History of Unix', and 'History of Linux', providing solid bibliography

👍︎︎ 8 👤︎︎ u/[deleted] 📅︎︎ May 27 2018 🗫︎ replies

A few Linux distributions were certified as UNIX, so this comparison is a moot point. Linux is a UNIX kernel.

👍︎︎ 1 👤︎︎ u/ryao 📅︎︎ May 31 2018 🗫︎ replies
Captions
hello my name is Gary Sims and this is Gary explains now you've probably heard of the word Linux you know it's an operating system in fact it's the kernel that's used at the heart of the Android operating system it also runs on a wide range of devices including desktops and laptops it's at the heart of Chrome OS you can get it on servers it even runs on the Raspberry Pi now you may have also heard of Unix and of course they sound similar Linux Linux and UNIX and you may wondering are they the same thing are they compatible are they completely different so if you want to know what is the difference between UNIX and Linux please let me explain okay to understand the difference between these two operating systems we need to know a bit about the history of how we got to where we are today so let's start with Unix so UNIX was invented by two men that is Ken Thompson and Dennis Ritchie now you may have heard those two names before Dennis Ritchie of course is famous for inventing the C programming language and if you have a copy of the C programming language the book by Brian Kernighan and Dennis Ritchie Kernighan and Ritchie it's often called the kr version of the C language and then there is Ken Thompson and he is very famous for not only inventing lit UNIX but he also invented the utf-8 character encoding that we use all the time today and he is the co-inventor of google's go language so here we're dealing with kind of legends in computing so in the 19 late 1960s early 1970s Ritchie and Thompson along with people like Kernighan were working on an operating system called multics and that's the multiplexed information computer services that was an operating system that was designed to run multiple programs at the same time now the team got frustrated with the direction and the scope of the project and so in their spare time Thompson and Ritchie started working on an alternative now at the beginning this alternative only could run one program at a time so rather being called multix it kind of got nicknamed as Unix where the U part was for you next and you can see what happened from here that was spelling was with a c' at the end but over time and no one can remember why not even Kernighan not Richie Thompson but over time that got changed to Unix with an X at the end and hence the UNIX operating system was born now it was written first of all in the early 1970s and by 1972 the C programming language which Kernighan Richie were developing had become sufficiently mature that they able to rewrite the operating system in just C now now interesting is at the time AT&T were forbidden from entering into the computer market due to some previous legal problems they had with monopolies and so therefore all AT&T could do was license the source code for this new operating system and that's exactly what they did and it started being used in various universities around the country and one of the universities where the new operating system arrived was at the University of California in Berkeley now over time AT&T actually separated itself from Bell Labs and it was able now to end into the computer market so by the early 80s it had actually started to sell a commercial version of its UNIX operating system and this commonly became known as system 5 and there's a whole reason for that to do with different versions that came before it but it was called system 5 now at the same time the people at Berkeley were also continuing to develop the UNIX sources that they got way back when AT&T were licensing the sources and this led to a flavor of units called the BSD version because it's from the Berkeley software distribution and so by the mid 80s you've now got two versions of UNIX running you've got system 5 from 80 itself and you've got BSD from California now from these 2 branches various important and well-known versions of UNIX were spawned for example hp-ux and Solaris come from the system 5 kind of inheritance and operate systems like ultrix which was from dec Digital Equipment Corporation came from the bsd line now of course over time the various different things that were being developed in these top racism were cross ported the most important one was that networking first of all came to the BSD distribution and eventually that made its way over into system 5 of course all this source code is still under the source code license that came from tea when they originally sold it to the various universities so over time the BSD virtual started to replace the files that came from AT&T with their own version so it became separated from the system five version eventually in the university of california side to release publicly the source code for its version of the operate is 'm and it said it was free from all AT&T files of course there was a lawsuit and we're now in the early 90s you've got the university of california vs. AT&T and ultimately the lawsuit was dropped and what came out of that protest was a version called bsd 4.4 light which is meant to be a version of unix which has no source files that recently came from AT&T now this version of bsd then went on to create what we have today which is freebsd and various other operating systems including in part mac OS which we'll talk about in a moment now the upshot of all this is that two important things happened one is that we now have a defined UNIX philosophy so the idea of you write one program and it does one thing really well the idea that a program it's output could become the input to another program which is the idea of pipes the idea of how you compile programs and how the command line works this has all been defined because of system 5 and because of BSD and the other thing that happened is that they wanted compatibility between the versions so there started to be published a range of standards the most popular one being POSIX which actually says that if your program is to compile on this operating system it has to have these api's that have these particular functions so you've got the POSIX specification which redefined what UNIX does from a programming point of view now while all this was going on there are several other things that were happening in parallel that we need to know about Wiley is the start of the new foundation good news standing for good news not Unix which of course is recursive because then to go back into canoe you see good news not Unix good news not Unix and that was started by Richard Stallman and he is responsible for the ideas of free software not free is in no cost but free is in freedom that we have today and also he was responsible for making sure there was the new C compiler the new see runtime library and lots of lots of other tools that were used to able to be able to build a free version of UNIX without relying on the BSD files or relying on the AT&T files and also it's worth mention there was another operating system called MINIX which was written by Andrew Tannenbaum and he was using this as an educational tool to teach students the fundamentals of operating system design so you've got system 5 BSD which has been released publicly you've got MINIX and you've got the new tools so in Finland in the early 1990s there was a student at university called Linus Torvalds and he had used MINIX and he knew about Unix and he wanted to overcome the the deficiencies that he saw him enix and write his own operating system and he did that and published it announce it to the world now there's a key couple of things about this announcement first of all it ran on PCs that's 386 pcs so we're not dealing with mainframes not dealing with supercomputers we're dealing with something that maybe students can have in their house and that actually made it accessible to many people who are interested in doing OS development the other thing to note is of course we've got all the tools that came from the ganoub projects you've got the compiler and the shell and all the things you need that came over from canoe and they were being able to be used by leanness to actually create the Linux kernel and also at the time that he actually published his announcement the Linux kernel was completely free of all MINIX code of course when Linux was developed it was developed using the same philosophy and the same model as the UNIX philosophy and the UNIX programming environment that came out of system 5 and BSD and quickly it gained support it gained a lot of interest and really started to take off what in 1992 the X windowing system was ported over to the Linux kernel which means you could now have a desktop with Windows you'd open up multiple terminals and people really started to use it and that's when I got on board I first used Linux when it was about version 0.98 I think we downloaded it at university we started using it on our piece these are home to see what we could do with it and one other key thing is before we got to version one of Linux it had started using the GPL that's the gue new public license that came with the free software philosophy from the new foundation so now you have this open source free software that everybody is able to contribute to and now you wind fast forward to today and we can see that Linux is absolutely everywhere so the popularity of Linux is undisputed it runs at the heart of the Android operating since that means literally there are millions of people every day who are using Linux you've got it on servers 60% of those web servers on the internet are using Linux and of course you've got it in things like Chrome OS and so on but to that in Linux isn't a version of Unix it's a clone of Unix or today they like to call it unix-like because UNIX was actually a product sold by AT&T through its system five branch and it was an operating system developed from Berkeley University so Linux is doesn't use that source code but it uses that philosophy it's a clone it's unix-like so where are we today well obviously Linux is still used in many many places and BSD those BSD source codes kind of morphed into FreeBSD which you can download install on a PC even today and through various different kind of merges and workings you'll find part of it even actually in Mac OS through next step and then down into the new version of Mac OS which Steve Jobs kicked off once he returned to the company so in that end actually you'll find that the most popular version of UNIX used today is actually Mac OS so before I made this video I had a quick search with the whole Linux development tree and you can still find references back to Unix in the tree in two particular cases one is in some files it will mention that the file originally came from Unix and however it's now been rewritten and changed to be completely open-source code and in second place there are many many interfaces many many ways that things work the philosophy of Unix that you still find in Linux and so therefore there are various labels and various things are tagged as unique because actually that was the way that eunuch did it and so that's the way that Linux does it now I wanted to see how well this has stood up to history so I found some source code to ultrix 4.3 which is a version of the bsd unix that Dec released in the mid-80s and I took one of the files in there in this particular one it was backgammon a a terminal version of backgammon and then I copy the source file over onto my Raspberry Pi and then I tried compiling it to see what it would work now there were some differences in how the C compiler work today it took me about five minutes to fix those and then voila I had a version of backgammon running on my Raspberry Pi from an original version of the source code that was released well how long ago is that thirty years ago and it still works because Linux is a UNIX clone and the UNIX we had then and the Unix Linux that we have now they are very very highly compatible of course that's sort code compatible binary compatibility is a whole different story there are some binary compatibility layers between various versions of Linux and FreeBSD and so on but let's not worry about that now just to clarify a couple things at the end you know of course a Linux distributions are we talking like you know red hat or fedora or 1/2 or arch or whatever your favorite version links distribution is includes much more than just than in its kernel of course you've got a whole bunch of tools like you know the KDE desktop and the gnome desktop and things like libera office and Chrome and Firefox and all these things that are included and that's absolutely fine and at the heart of it is the Linux kernel and FreeBSD is the same if you get a freebsd distribution it comes with the freebsd kernel which is based on the source code that was released by bsd 4.4 light but then on top of that you've got the desktop and applications like firefox or so on that are actually part of the greater ecosystem of free software okay so in summary unix is actually a product that was sold by AT&T as a commercial product its source code was licensed in the early days which means eventually we had some of the source code out in the public and that was used for operating systems like freebsd and to some extent like Mac OS which we have today Linux was written using MINIX as a way of writing a UNIX clone or a unix-like operating system and today it doesn't share any files with the original versions of UNIX from back in the 70s and 80s and ultimately free software has won the day here because of course Linux is so popular not only on servers but also on smartphones so my name is Gary Sims and this is Garrick space I really hope you enjoyed this video if you did please do give it a thumbs up if you've got any questions about UNIX and Linux please ask me in the comments below and I'll try my best to reply you know what else I'm going to ask you to do please subscribe and please share this video on social media okay well that's about it so I'll see you in the next one
Info
Channel: Gary Explains
Views: 1,346,178
Rating: 4.9222069 out of 5
Keywords: Gary Explains, Tech, Explanation, Tutorial, Linux, Unix, FreeBSD, macOS, Ultrix, Solaris, Linus Torvalds, HP-UX, AIX, PDP-11, DEC, Digital Equipment Corporation, OSF/1, VAX, The C Programming Language, Ken Thompson, Dennis Ritchie, Brian Kernighan, Rob Pike, Tux, GNU, GCC, Richard Stallman, Andrew S. Tanenbaum
Id: jowCUo_UGts
Channel Id: undefined
Length: 13min 59sec (839 seconds)
Published: Fri May 25 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.