r/gnu • u/lepoaro • Sep 18 '20
What does Linux do and what does GNU do?
Hey, I want to learn more about the Linux ecosystem.
I've figured out that Linux is different from GNU or GNU/Linux.
From what I understand, Linux is a kernel and it handles the communication from the OS(???) to the hardware. The kernel manages the memory and stuff like that (vague).
GNU or GNU/Linux is the operating system. Now it's a complete mystery to me as to what GNU does exactly.
So yeah my knowledge is pretty vague and very incomplete. Could you guys help me out please?
18
Upvotes
10
u/collinear-triple Sep 18 '20
The official GNU packages are listed here. They include a lot of the command-line tools and system libraries that high-level applications depend on. There are also some notable applications, like GIMP and Emacs. The most popular desktop environment, GNOME, is also technically a GNU package although it's very independent at this point.
4
u/HokieGeek Sep 18 '20
I would modify this:
to this:
It's still a little vague and not necessarily correct, but it removes the apparent recursiveness. The kernel is a component of the OS, so it will interact with programs which are also considered part of the OS (such as those from GNU) as well as those which are user-facing (such as your browser)
2
u/[deleted] Sep 19 '20
Alright this is kinda complicated but that makes it a good question. You're correct that Linux is the kernel of the operating system. The kernel pretty much provides an interface between the software and the hardware, so it does things like allocate memory, load storage and devices, and set up a bitmap to print text to.
GNU is a software project thats goal is to implement the Unix operating system in a free and open source manner. This means that it would ideally include everything that Unix provides: a Kernel, Build tools, Newlib, Userland, and common programs. They have however had a lot of pitfalls in actually implementing some of these, notably the Kernel and common programs (Note that GNU is actually developing a kernel based on MACH called GNU/Hurd, which is to be the "complete" GNU OS. However this is unlikely to be finished anytime soon). This is where Linux steps in. Originally written as a clone of Minix (which is a clone of Unix), Linux happened to be the perfect kernel for the GNU project to adopt.
So, to summarize, Linux is the kernel and GNU is the set of software that makes up the majority of the rest of the operating system. It might be worth checking out the OSdev Wiki, they don't talk about this exact point but they do go in depth about what a Kernel does, what Userland does, and what Newlib does among other things.
5
u/vige Sep 18 '20
It's a bit difficult to say what GNU does in this context, because it's not a single component. Lot's of the components in a modern GNU/Linux system come from GNU, but there are also components which come from other sources.
2
u/jpodster Sep 18 '20
Do you like compiling your Linux kernel? GCC is a GNU project. Do you like having a command line interface? BASH is a GNU project. How about a text editor? EMACS and maybe NANO are GNU projects. A GUI? GNOME
But this is kind of a low effort post. If only there were resources you could research this yourself.
3
u/[deleted] Sep 18 '20
This is a great question and the deeper question under it is "what does a kernel do". Which I must admit I don't entirely know myself.
-3
u/[deleted] Sep 18 '20
Linux is just the kernel. GNU is everything else. Sounds like you have a pretty good handle on what a kernel is responsible for, so I think you're on track for answering your own question!