ELI5: What the heck is linux?
ELI5: What the heck is linux?
I'm old. I don't understand it.
ELI5: What the heck is linux?
I'm old. I don't understand it.
So buckle up, it’s story time.
Your computer needs to run software like any other computer does for it to do what you want it to do. There are lots of different parts that do the same thing in different ways and so there are lots of ways to make a computer.
Once upon a time people would write software for specific machines. Anytime a new machine was released, they had to change the software to work on the newer machine. This got real old real fast.
Operating systems come between your software and your hardware. Rather than release a version of your software for each individual type of computer, you just have to release software that works on a specific operating system. So if I sell a program that draws red squares, I would have to release tons of different versions for different machines. That’s expensive and a pain in the ass to maintain. So instead I release my red square program for windows. Now, I describe to windows how to draw that red square with my program and windows handles the task of telling all those different types of computers to do what my program wants it to do.
Microsoft makes windows. Apple makes macOS. But there are others that exist with a different business model. Linux is free and exists under a different philosophy, that a community can share knowledge to replace the locked down and expensive offerings from Microsoft and Apple. To fund this, they may charge for support of the product instead of or in addition to the operating system itself.
When people talk about Linux they are typically referring to a Linux distro that can make up an entire operating system, oftentimes a full replacement of windows or macOS. But technically Linux is just a part of what makes the entire operating system. It’s arguably the most important part, the kernel. Think of the kernel as the core of the operating system. Everything else an operating system does is built on top of the kernel. Linus Torvalds maintains the Linux kernel and he just gives it away.
Linux doesn’t really do a hell if a lot by itself, but a kernel is an incredibly complicated thing to create. So others contribute not just to improving the kernel but making other things that use it to do other things. Because Linus already has a kernel he released for others do what they want with it, it makes things a LOT easier to develop since a huge part of the work has already been done.
All operating systems have kernels and they are the probably the biggest pain the ass part to make. Linus created a simple one years ago and shared it with everyone, who contributed their ideas over the years to enable it to do all sorts of things it couldn’t before.
Now here’s the interesting part: all those people who contributed to developing this thing have day jobs and their employers really don’t want to pay them to reinvent the wheel. So all the big, heavy, expensive, vital stuff that happens behind the scenes that makes our world work needs experienced people to make it work and it doesn’t want to make something only a few people can make work. It would be a catastrophe if the only guy who knew how your shit worked retires, dies, or, dare I say it, asks for a raise. -wilhelm scream-
So if a big company uses Linux, they have an enormous community of talented people they can hire at any time, they aren’t locked into a way of doing things that can request a ransom to continue working (ahem, adobe), and their start up costs are lower.
So who uses Linux? Almost everybody. If it’s online, there’s Linux backing it. Meta (Facebook), Google, Amazon, Apple, even fucking Microsoft uses Linux, and most of the companies using it also contribute back into Linux development because it’s much cheaper than doing it all by themselves.
Now how does this affect you? Linux isn’t just for highly skilled tech professionals running major operations. It’s for that little computer in your desk that just looks at Facebook and internet porn too! Many people are looking for alternatives since their perfectly working windows 10 computer won’t be supported past October anymore and not all of them can upgrade to windows 11. But you can install Linux for free and you’ll be fine.
What makes the kernel such a PITA?
Per se, it's actually not. There are thousands and thousands of hobby-level kernels floating around. Many university courses actually include making your own simple kernel.
The big issue is that the kernel is the core of the whole ecosystem. Everything builds upon it. So if you build a new kernel, you pretty much need to rebuild everything built on top of it.
As a bad comparison, imagine you came up with a genious new shape for a car fuel hose nozzle. You know, the thing you plug into your car to refuel it. Designing a new nozzle is easy. Getting it made isn't much harder either. Retrofitting billions of cars to work with that new shape is an almost impossible amount of work. So while making a new nozzle is no problem at all, actually implementing it is almost impossible.
The same holds true for the kernel. Making "a kernel" isn't a big issue. Getting it to work with all PCs with all their diverse hardware and software is close to impossible.
The Linux kernel and the drivers running in it easily have billions of work hours invested into it, and still it doesn't work perfectly with every piece of hardware you might have in your PC.
Programming is a balance of compromises, one has to define a balance between optimisation, maintainability, legibility, security and much more.
The kernel handles a bunch of different 'low level' things that are quite complicated (Allocating memory to programs, scheduling what programs the CPU needs to run, creating security layers for users, handling temperature and performance throttling, peripherals etc)
Due to its pivotal role in an operating system, the kernel developers walk a very thin line of compromises to ensure that it can be maintained and still remain performant.
They do all of this while ensuring that any updates to the Kernel do not break older systems when they update (fingers crossed) or they do not break programs specific to the user (Userspace programs)
Literally everything depends on it. It has to account for a lot of variables. It has to be compatible forward and backward. There’s also a lot of personalities involved in its development and they all need to get along.
It’s kinda similar to Unix.
I was too afraid to ask, thanks..
Every desktop computer has an operating system. Most of them run Windows. Some run MacOS, this is why the software on Macs and other PCs is different.
Linux is another operating system, its free and anyone can see the code its written in.
Linux is popular with nerds and programmers since its easier to do some advanced stuff in. Its popular as an alternative to windows since Windows is progressively getting more annoying to use (updates, popups etc).
Linux is used by servers (computers that run websites, like lemmy), and other stuff like smart appliances.
The android Operating System (used by android phones, like Samsung phones) is based on linux.
Is there a Best of Lemmy community? Cause this belongs there.
This is an amazing explanation, and you also managed to keep it relatively short.
Yes but you missed a lot of things of course.
Linux is free software, unlike MacOS or Windows. That means that the software is given users for free, and they can mostly also change it and redistribute it as their own.
This is why there are so many varieties of Linux Distributions, as the used software components are often the same, but they are released in different cadences, have different configurations and behaviors, or different focuses (for example Gaming, Server, Workstation, Lightweight, System rescue, hacking, anonymity).
Free software means that everyone can use it, how they want. Nobody needs to pay, but donations and contributions are crucial. While many big components like the core part "Linux" and others are developed and maintained by bigger corporations (which sell support or systems to mostly enterprise customers), a lot of the Linux software is fully done by people out of love, in their free time.
Linux is one option for the core, central part of how a computer works, called a 'kernel'. All programs talk to Linux, which talks to the physical computer.
Windows has its own version of that kernel, Mac has another.
Linux is special because it's free for people to use, change, and check what it's doing.
There's a lot of programs built to work with Linux: together they are what you use to use your computer. Like, Windows is actually lots of smaller programs working together, and Mac OS is lots of smaller programs working together. Most people say 'Linux' meaning all these programs running together, with Linux at the core.
In other words, Linux is a system that runs on your computer, so you can run the programs you want (like Emacs, or Inkscape) on top of that.
Your computer is a bunch of parts that need software to make them work. The "operating system" handles talking to the hardware directly, while the programs you run only talk to the operating system. Talking to the operating system is easy, talking to the hardware is difficult, since you may need to speak a hundred different languages to work with every possible network card, sound card, graphics card, etc.
The operating systems you have probably heard of are windows and macOS. Linux is a 3rd one.
Windows is owned by Microsoft, macOS is owned by Apple, and Linux is developed by the community and (typically) released for free. Since anyone can work on Linux, there are tons of different versions of it floating around, that are all slightly different from one another.
Omg this us an amazing explanation thanks
So you know how your phone runs android or iOS? Think of windows as one, and Linux as the other if they could both run on the same hardware.
Since there's already a bunch of people explaining it I'll explain why it's so loved by the users and the hype around it.
Linux has a copy left license meaning no one person or entity owns Linux. It's open-source which allows any company to modify how it works or just a random person can change the code or fix it. The only restriction on this license is that anyone that makes changes have to share those changes if asked, this why everyone benefits. Anyone can submit those changes willingly to be approved and help contribute. This means that Linux is built and maintained by thousands of companies and 10s of thousands of people all across the world, not for a profit or bottom line (well for the companies like Google it's probably for profit). But to make something that works the best they can make it out of their passion.
I personally love Linux because I'm sick and tired of fighting my computer and phone to do what I want when all it does is force ads and pop ups down my throat and track my every move. Linux doesn't have any of that because the people that make it use it and don't want that, no one does. Since there's no profit motive we don't have shit like that.
Ah so it protects your data?
Beware, things are not that easy with Linux. If you use Windows, you use Windows. There are different versions but they are just differently old versions of the same thing. Same company, same people, same stuff. So you can say things like "Windows shares your data with Microsoft", because there's only 1-2 current versions of Windows at a time.
Since Linux is so open, there are thousands of different distributions created by thousands of different companies or even hobbyists doing that on their own time. And since it's so open, it can be configured any which way.
For example, ChromeOS and Android are two Linux distributions created by Google, and both of them collect and share your data like crazy.
Some of the more classical Linux distributions (like e.g. Ubuntu) also ask you if you want to share data with them, but most of them allow you do decline and many of them really don't share data at all (unless you run programs that do share data again).
So what you can say about data protection in regards to Linux is:
But no, using any Linux doesn't necessarily mean your data is protected in any special way.
It's not "protecting your data" in a literal sense, it just doesn't collect and share it. Your data isn't specially protected in Linux, it's just that Windows and MacOS do collect data from your PC and sent it to their owners. So it's only better for your data protection, because it doesn't actively share your data.
That's another thing, with Windows or MacOS installed on your PC, you do not own your operating system, you just bought a license to use it. But you DO OWN the Linux on your PC, it's yours and you are legally allowed to do with it as you please. And thus, the only master that it serves are you. Not the corporations trying to exploit you for profit.
It's not just protecting your data. You can inspect the source code. It's open source after all. People can fork it or create new distributions. There are tons of distributions available for Linux. Like a distribution is combination of software, so linux is officially only the kernel. But the operating system 'Linux' is much more. Like tools and commands. And user interfaces.
Try to search for terms like: Ubuntu, Fedora, Linux Mint. And so much more. You will see screenshot on the internet how those distributions are looking. And you can customize everything.
And all the software is also free. Free in terms of money and free in terms like freedom of creating a copy inspect the code, change the code etc. See also gnu philosophy : http://www.gnu.org/philosophy/free-sw.en.html
Just adding to this, Linux is pretty ubiquitous these days, with it being found running billboards, menus, information screens, and many machines and appliances.
Though these versions are stripped down and no what you are used to from a desktop. They just have the kernel and a few services for the task at hand.
There have been some great answers already but there are some things I'd like to add: all commercial operating systems (especially Windows and Chrome OS, but MacOS is not at all innocent in that regard) are becoming increasingly focused on data harvesting, advertising and controlling what the user can do with their computer. Linux doesn't do any of that. Your computer is yours and nobody tries to control what you do with it. And if you use a beginner friendly distribution, it's not really more difficult to use.
I would argue it's easier to use than Windows at least, but it is different from Windows so moving from Windows to Linux can be challenging and you have to be willing to adapt. Package managers make the experience so much better for users though, and you don't have to hunt down random executable online for installs or updates (usually). There's also no mucking about with a thing like registries in Windows to make it work how you want, which you don't have to do on Windows but to make it less annoying you do.
Free as in freedom!
Freedom to do whatever you want, however you want. Including brick your computer.
But honestly, modern distros are really smooth feeling. If you slapped Mint on just about any computer today it will run better and longer, and you'll quickly find that it's just as easy - if not easier - to use as Windows or MacOS.
Also its worth noting that MacOS and Linux share genetics that don't really matter to 99% of users, but if you want your Linux to look and feel like a Mac, you can do that very very easily.
Also the KDE Plasma DE is super fun and I'm addicted to it now
Linux? Its kinda like...
Gonna find my baby, gonna hold her tight
Gonna grab some afternoon delight
My motto's always been "When it's right, it's right"
Why wait until the middle of a cold dark night
When everything's a little clearer in the light of day
And we know the night is always gonna be here any way
Thinkin' of you's workin' up my appetite
Looking forward to a little afternoon delight
Rubbin' sticks and stones together make the sparks ignite
And the thought of rubbin' you is getting so exciting
Sky rockets in flight
Afternoon delight
Afternoon delight
Afternoon delight
Thanks for the memories! "Af-af-after-noon-delite!"
This is like if Chef from Southpark would try to explain it.
It's from the movie Anchorman.
I donno man, that sounds kinda crazy
Thats because it is crazy. Crazy in love
In common usage, at least, it's an ecosystem of open source system software that sprang up around the Linux kernel. What exactly a kernel is might not matter to you.
The practical upshot is that you can run a computer without any code on it on it that isn't publicly accessible (from Apple, Google or Microsoft). There are other ways than Linux if you're committed, but none nearly as well developed.
This is good, because Linux is free of cost, free of restrictions on what you do with it, and experience has shown that open source code is much more maintainable and less likely to contain bugs and security vulnerabilities. (Basically, if any problems come up someone out there is likely to fix them, while closed-source software is rarely touched by anyone other than the original team)
Just for fun, and because someone has to post the meme:
someone has to post the meme:
No, no one needs to post the embarrassing speech where stallman tries to ride linus' coat-tails.
He's not totally wrong to be bugged about it. He basically is the father of modern free software, and by extension all the non-kernel components of a typical Linux machine, but the setup ended up named after another guy and an obsolete thing from Bell labs.
You know how a lot of computers use windows? And a lot are macs? And there's a difference between the way you have menus and apps and stuff? Linux is a third way to use your computer. But there's a lot of versions of it. It doesn't matter what kind of computer you put it on either. New, old, windows, Mac, mini computers, old laptops. Linux is simply another way to use your computer. It's really cool if you're into that kind of thing.
That sounds very clever
Like you're 5... Ok.
Do you play videogames?
On the computer or on the TV?
Like Xbox? PlayStation?
Cool! Xbox and PlayStation are both "gaming consoles" and they are kinda not too different from a computer, but they're computers just for videogames. Even like a phone, or a Nintendo switch is a computer.
All computers have operating systems. Think of this as what's on the screen when the computer isn't doing much other than being on. Like the desktop, the home screen. That's kinda your operating system. It's the command center where you can use your computers tools!
Here's the deal. Linux? It's an operating system.
PlayStation uses their own modified version of Linux.
Xbox doesn't. They use a modified version of Windows (kinda).
Apple phones use a modified version of Apple computers operating system.
Android phones use a modified version of Linux.
the Operating system in your computer can be Linux, too! 🤓
Apple’s operating system is based on UNIX
Doesn't PlayStation use BSD..?
Simplified explanation (shut up, Richard Stallman) : It's an operating system. In the same way a PC (or any other computer) has Windows (or OsX/MacOS, android, et.al.) as the connecting layer between the hardware and individual programs.
Linux can serve this role as well, and as it's free and open source, it's particularly popular among the tech and privacy enthusiasts here on Lemmy. Some use it for everything, some use it alongside windows (dualbooting), and some use it in a professional setting.
Linux is especially common on servers, but it's also gaining a lot of ground in the desktop space as well. Since Linux is free to distribute, many have over the years made lots of nux distributions specifically tailored towards particular use cases.
Source: Linux user of 25ish years.
Tip: The Linux mint installer can boot into a fully fledged Linux without touching anything on your hard-drive, so if you want to check it out without installing, you can.
There's Microsoft windows and there's Linux. No single person owns Linux so there are so many different options to use (called distros) the big ones Debian, Fedora, Arch, OpenSUSE, Etc package open source software on top of Linux that enable you to use it as easily as possible.
To a 25yo I would say, a computer has many separate devices like USB controllers, sound devices, so many independent systems that need software to work. Such software is copyrighted, it turns out the community does not like that so they made their own that is owned by the community. Sometimes its not perfect but it also can do things you couldn't before.
Its the software you use to run other software on the computer. Microsoft's version is called "Windows" and Apple's is called "MacOS".
Lots of great explanations, but something I didn’t see, or missed:
It's like Windows if it was made by people who care about making a good operating system instead of by a big corporation who only cares about milking the crap of its users for money by collecting their data and forcing unwanted features down their throats.
Linux is based on open source code, which means the inner workings of the system are free knowledge and is freely accessible. Any development team is free to use it as a base and modify it or build upon it as they please. There are different teams making their own version of Linux with different features. They are called distributions, or "distros" with different features that appeal to different users. Even individual Linux users will generally have far more control over their operating system than Windows users.
Linux used to be not very user friendly and only approachable by more technical savvy people. Now however, there are distributions out there that are simple and approachable for almost anyone willing to learn a little.
I will be quick: just an operating system like Microsoft windows or Apple Mac OS.
In summary, Linux is and Operating System that gives you control over your machine - not the other way around coughwindowscough. With that power, however, you can also do a lot more harm to your machine if you don't continuously keep learning and stay curious.
It's high risk, but high reward (especially as a new user). There's something about learning how your computer works (via Linux) that continues to captivate me after many years of use.
When you have a computer, you have hardware which is the box in front of you but on that box you can install different software. E.g. windows, macos or Linux.
Linux got its name from Linus Torvalds who was what I'll say the architect and substantial worker of the kernel, ther very core of the operating system
The computer has a few layers. If you write a program, it may do something like let you read emails,but this program is at the top layer and when you do something like save a picture to your desktop, it tells the operating system that the email attachment is to be written to the disk.
Now the hard drive of the computer is managed but the operating system, and the operating system negotiates with the hard drive on where to actually store it on the hard drive.
In a sense the operating system is like a person you give a photo to and say file this away for later.
That person was there when you got the hard drive/filing cabinet and keeps track of what sin which draw and in which removable folders.
Later when you ask the operating system to show it again, it goes back to the filing cabinet and gets the picture without you or the email program having to know the nitty gritty of it was in the 2nd draw , nearly all the way up the back.
The operating system also does thing like operate a the WiFi a bit like a radio and schedules when tasks run on the computer.
Im stretching the analogy here but imaging an office where only one to four people work there. the operating system keeps track of all the things they need to do and make the system function well.
Microsoft made Dos (disc operating system) and windows. Apple made Macos , a long time ago on early mainframe computers there was Unix and Linux is an operating system originally made to replicate the look and feel of Unix.
But it's build under an open source licence so you can download and see all the internals and change them if you want.
Android phones and tablets run Linux.
It's versatile and can be adapted. I've got some 10 year old computers I've reconfigured as a server running Linux that wouldn't be able to run modern windows operating systems.
Edited to add People make up different distributions like flavours of Linux.
Debian is a version which is old and stable. It's not bleeding edge, but their releases are tried and tested.
Ubuntu is one which Ive bee using for a while and I'd call it user friendly.
Gentoo is a distribution which the installation compiles it's source code optimized for each computer it's installed on to be as fast as possible.
Kali is a distribution focusing on network security.
Arch is another distribution.
I hope it helps.
It's a desktop operating system
I'm fairly certain desktop computers (and PCs in general, including laptops) are a very small portion of the devices that use Linux.
I expect most Linux devices are phones and tablets (Android), followed by embedded devices (though BSD probably outweighs Linux on those), followed by servers, followed by desktop computers.
You can think of Linux as the underlying engine that runs your computer just like Windows 10/11 or MacOS.
Thankfully just like a car you don't need to fully understand the intricacies in order a Linux desktop🤗
A computer has hardware (your hard drive, memory, screen, processor) and software (a web browser, Discord, apps, etc.). Your operating system is what manages your hardware and software, and provides a user interface for you to interact with. Microsoft Windows, IOS and Android are all types of operating systems. They allow you to run software, change your display settings, connect to the Internet and do anything else that your hardware and software allow.
Linux is an operating system, or more accurately, a collection of operating systems that are free and open source. This means that anyone can take the Linux kernel (the base of the operating system), and create their own distribution, or distro for short. There are dozens of Linux distros out there, each serving different users or different purposes. For this reason, Linux is used on a wide variety of devices. Android on smartphones and tablets, steam OS on gaming handhelds, and the software that powers most smart home appliances, these are all different types of Linux distros!
Just like Windows (95, Me,Vista,XP, 10, 11)OS and macOS (Mountain Lion, Yosemite, El Capita) there is a 3rd option. Linux! It’s free and available to anyone and is highly compatible with most if not all types of hardware. Like all things in life, there are caveats and ability to customize to your discretion. Do not be intimidated by the flavors that exist, such as Ubuntu, Mint, Arch and many many more! As an example there is steamOS used on the Steam Deck. This a a divergent version of another open source OS, that is compatible in using for mobile gaming. My verbiage is limited and very very broad and brief. The history of it all stems from one singularity, the kernel or the “brains” of the computer. All variants of operating systems stem from Unix. This is particularly due to use cases of specificity task, or goal of the program to accomplish.
Communist Windows.
Linux is a vibe. Like a cosmic string vibrating in twelve dimensions all at once.
computer go brrr
Linus is an overly complicated and super buggy OS for PC. But for everything else that uses Linux it works fine.
Good for cars, phones, consoles, smart TVs etc. but bad for personal computers as you need a 10 year degree in coding just to install a dumbass program that will probably crash the whole computer anyways.
I hate Linux. I have tried dozens of versions for dozens of years and every distro is the same shit box as the next. I think the real problem is you'll have a distro by a group of regular people and it sucks. Then you have a distro like steam OS where an actual company made it for one specific thing and it works fantasticly.
I scrolled the comments and every single one is incorrect.
Linux is not an operating system. It is a kernel, which is an important component of an operating system. Operating systems that use the Linux kernel are often referred to as "Linux" for simplicity and brevity, though. It should be understood that when someone says "Linux" they typically are meaning "an operatjng system that uses the Linux kernel".
Agree, but this is the ELI10 explanation, not the ELI5 explanation. ChromeOS and Android are both operating systems that look and act very different than an operating system like Debian or Fedora, but all four of these examples use the Linux kernel.
I don’t know… I think his description can be overly complex/abstract for eli5 AND all the other descriptions can be wrong.
Here’s my attempt:
You know how with Lego you can make all sorts of stuff, but you can also buy a kit with some main pieces pre-molded that you attach the other bits to, to make your object?
Linux is like that pre-made bit, with bumps on it in specific places to build the object. It’s designed to be the interface between the non-Lego objects and the Lego pieces.
But unlike in most systems, with Linux, everyone can tweak the pre-made bit, and it must be given away, along with the instructions on how to build it.
And of course, this all runs in software on electronics, not using physical objects made of plastic.
Okay, imagine your computer is like a big playground.
Linux is like a really cool, free, and super customizable manager for that playground.
In short: Linux is a free, open-source operating system that gives you a lot of control over your computer. Many phones (Android is based on Linux!), servers that run websites, and supercomputers use it because it's powerful and flexible
Yes I use AI
imagine your computer is like a big playground
… goes on to do nothing with that analogy.
Yes I use AI
No you don't.
You used a large language model, which is a very fancy statistics based autocomplete algorithm, but has absolutely nothing whatsoever to do with artificial intelligence, other than by harming public opinion of it and sucking off all the funding that could be used on actual AI research.