Why FreeBSD and OpenBSD are tidy [GNU/Linux vs. BSD OS + coreutils]

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys I made a little video a little while back called I titled that Linux is a mess and I was talking about directory structure I was kind of comparing directory structure between Linux and the BS DS where where you've got two other suit so this this some terminal on the left here is is a Linux folder the bin folder where you have basically every single thing core utilities and third-party applications programs are basically all thrown into this one folder slash slash bin on that's on Linux whereas on FreeBSD the core utils are separated from third-party applications which you find in us our local bin so and I was just talking about that how as a as a someone who's a bit of an OCD type I just like the fact that things are kept separate like that things are put in their place I got a bit of criticism on that video both from Linux guys and BSD guys Linux guys were unhappy because they were like well who cares doesn't matter and it's a fair enough fair enough criticism BSD guys were criticized me because I didn't go into it enough I didn't talk about user land enough and the differences so at the end of the day doesn't really make a difference it's not it's not going to change the effect the performance of your computer or anything like that it's just I just like the fact that things are put where they should be but I wanted to just add something to that video I agreed not making a comment on on core utilities on the difference between so Linux is is Linux by itself is not an operating system you should you probably know that already it's Linux is a kernel and the full name of it is gununu Linux because Linux is actually a combination of the ganoub project or the gununu operating system which has all of the utilities the core utilities and Linux is the kernel that makes it run there's a there's a new Agra new kernel called goo new herd that's been in development forever and probably will never never be a real a released officially released thing if it is then then it would cease to be Linux it would just be you know would be the canoe OS but yeah Linux is so linux is just the kernel on its own it can't really do anything it works together with the guna operating system you have the the core utilities like this one here I just got this as an example LS so if I come over here I'll show you this so I got a couple of different source codes so this is the canoe this is what you'd find on Linux the LS program GPL license it's got about if you look at the nut the number lines of code in this program it's like four five thousand nearly five thousand lines of code on Linux but if you look at the FreeBSD version BSD license I come down here I've got a thousand lines of code so it's a much smaller core utility does exactly the same thing it's same functionality has the same purpose give or take a few different flags a few different bits of the syntax might be a bit different but it does the same thing and you look at the open BSD one and it's actually six hundred lines of code about six hundred lines of code so the the LS program and this is something a lot of people don't know and I didn't know this it's not just copied over on all of these different os's it's it's the LS on FreeBSD is independently written for FreeBSD the LS on open BSD is independently written for open BSD the one on Linux on all Linux distributions is written by the gun ooh guys so it's it's a it's a totally different program essentially but the the reason why it does what it has to do and it works the same way on each operating system mostly is because it's these are all these are POSIX compliant they follow a POSIX standard so they have to in order for an operating system to be POSIX compliant it has to have these utilities they have to be able to do certain things there are lots of other POSIX standards that have to be followed so that you can port programs fairly easily so even on if you look at Apple if you look at some you know like Mac Mac operating system opensolaris like you openindiana Lumos trying to think what else most Linux distributions BSD is net bsd these are all POSIX compliant so you've got essentially the same kind of structure of the where files are port directories and core utilities so that so you could easily put things over so if I come over to the man pages for a second if you if you come down to the very bottom so this is the FreeBSD man page for LS if you come down the very bottom you'll see that some there's a section on compatibility and standards it actually tells you you know with the exception of options offten G of an N I fan o the LS utility conforms to the POSIX one standard so this this - G here I believe if I come over to Linux is it so this is the Linux main page they can do leaks man page for LS so on Linux it does it's basically like - L so we'll do like a long list and I think it's the same on open BSD yeah same on open BSD but on FreeBSD this option has no effect so on FreeBSD that that flag that that will not do anything so if I come back over here for a second LS - G you see it doesn't it doesn't do anything but if I let's say I do this so go into this is my open BSD machine I'm just going to a different directory and if I do LS - G it gives me a long list okay so so on open BSD though the - G works on FreeBSD it doesn't and on Linux at work so it's just to kind of show you that because I know a lot of people probably don't know this or they're probably confused by it because I was that even though you have these same utilities that exist on all these POSIX compliant operating systems they they aren't the same codebase they might be completely independently written and it might have different different functionality like some different syntax so yeah that's some that's pretty much it this is not this is not really comparative things in terms of one operating system being better than another it's just that some it really just to point out that there is a there is a total difference between these core utilities one thing that actually doesn't exist on open BSD is color so for example you know you can do on linux and freebsd you can do LS - - color that's already there anyway or you can do LS - G capital D which does the same thing but if you do that on open BSD it doesn't work you have to actually install this a completely separate version of LS so that's some that's just another thing that's so so just to kind of I guess add to that video that I made the reason why you have that separation of files is because FreeBSD OpenBSD our entire operating systems including their own core utilities that have been independently written for those operating systems whereas Linux is is a kernel with a separate project combined with a separate project that includes its own core utilities and they they may I don't know they may I haven't actually gone through the code like bit by bit just to kind of see if there's been parts of it that have been borrowed from others I'm not sure of the process there or the history want it yeah I think you can't actually look at the the commit history just to kind of learn more about it but yeah they're different programs they're essentially different programs that do the same thing and have the same name so that's it
Info
Channel: iBSD
Views: 63,114
Rating: undefined out of 5
Keywords: freebsd, openbsd, linux, coreutils, gnu
Id: v4_RlOwhkII
Channel Id: undefined
Length: 9min 40sec (580 seconds)
Published: Thu Jan 10 2019
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.