iTranslated by AI
What the Term "Linux" Refers To
The word "Linux" is used in many different senses in the world. In this article, I will discuss those that are used most frequently.
Linux as a Kernel
"Linux" originally refers to the OS kernel that Linus Torvalds started developing. Very roughly speaking, an OS kernel is the core software of a computer system that sits between hardware and processes such as applications and middleware.
Process
-----
Kernel
------
Hardware
From the perspective of an application user, the OS kernel achieves things like the following:
- Even if one application terminates abnormally, it does not affect other applications.
- Multiple applications share resources such as CPU and memory that exist in the system, and they are restricted from accessing each other's resources (though there are cases where they share memory).
- Communication between applications.
- Applications do not need to access hardware directly; they can access it through a unified interface provided by the kernel. Conversely, applications cannot access hardware directly.
When referring to Linux in this sense, it is sometimes called the "Linux kernel" to avoid misunderstanding. A rough diagram is shown below.
Process
-----
Linux (Kernel)
------
Hardware
Processes request the kernel to perform tasks through a special method called a system call. Examples of system calls include process creation, new memory allocation, and device access.
Linux as an Operating System
The word Linux also refers to an Operating System (OS) that runs on the Linux kernel and has a Unix-like interface. It might be easier to understand if we call it a Linux distribution, such as Ubuntu or Red Hat Enterprise Linux. For example, it is used in phrases like "Ubuntu is Linux."
I mentioned the term "OS kernel" earlier, but an OS is not equal to a kernel. An OS refers to a broader range than a kernel. Speaking quite broadly, an OS is the combination of the kernel plus everything that runs on top of it, or the collection of things that all software depends on.
For example, an OS provides things like the following:
- Shells such as bash.
- Standard C libraries used internally by programs written in C, etc.
- Compilers for C, C++, Go, etc.
- Interpreters for Python, etc.
Since the term OS is not strictly defined, some people may think that some of the items in the list above "probably aren't part of the OS." You can just think of it as "roughly something like this."
However, recent Linux distributions have become massive collections of software containing everything from applications to middleware in addition to the OS described above, so as the author, I sometimes wonder, "Can we really call this an OS?"
As a side note, there is an OS called Debian GNU/Linux, and there are other OSs such as Debian GNU/Hurd, which uses a kernel called Hurd, and Debian GNU/kFreeBSD, which uses the FreeBSD kernel. Replacing just the kernel is quite interesting.
Linux as a Whole Computer System
The term "Linux" is also sometimes used to refer to an entire computer system built on top of the kernel as an OS. For example, it is used in phrases like "Company X's system used to be Windows (built on Windows), but they migrated to Linux (migrated to a system built on Linux)."
Others
There is a reason why I specifically wrote "an OS with a Unix-like interface" in the "Linux as an Operating System" section. For example, Android uses the Linux kernel, but on top of it sits Android-specific software that has an interface different from Unix-like ones. While it's not entirely wrong to say "Android is Linux," it's not a common expression. You more often hear "Android uses Linux." People say things like "Android is Linux" or "It uses the Linux kernel but it's not Linux."
Conclusion
I'm starting to lose track of things myself as I write this. It is a truly difficult word to use. When writing books or articles, you have to define your terms at the beginning as needed, and it's a hassle because there aren't standard names to clearly distinguish between these different meanings. The end.
Discussion