This series is an introductory course for those who have never touched Linux before. We will explain how Linux works, starting from the basics. From the third installment, we will actually type commands to verify things. This series does not introduce any specific products or services.
What you will be able to do after this session
Explain in your own words what kind of software an OS is
Explain the difference between a "kernel" and a "distribution"
List where Linux is running in your daily life
Explain the main differences between Linux and Windows
You may have heard that you should learn Linux, but you don't know where to start. Typing characters into a black screen seems a bit difficult.
I think there are quite a few people who feel that way.
However, in reality, almost everyone uses Linux almost every day. Whether you are watching videos on your smartphone or shopping online, Linux is often running in the background. You just haven't noticed it.
In this first installment, before we start typing commands, we will first organize what Linux is.
The OS is the building manager
Linux is a type of "OS (Operating System)." Windows, macOS, and the iPhone's iOS are also members of the OS family.
So, what does an OS do?
Inside a computer, there are many components such as the CPU, memory, storage devices like SSDs, and network equipment. And on top of that, many applications such as browsers and spreadsheet software are running.
What would happen if applications tried to use the components on their own? Two applications might write to the same memory location, or one might hog the components, leading to immediate chaos.
Therefore, the OS stands between the applications and the components to manage everything.
Let's compare this to an apartment building.
The building and facilities are the computer's components (hardware). They correspond to rooms, elevators, electricity, and water.
The residents are the applications. Each is going about their own life (work).
The manager is the OS.
The manager performs the following tasks:
Assigning rooms to residents (allocating memory to applications)
Ensuring everyone can use the elevator in turn (allowing many applications to share the CPU)
Storing packages and handing them over when needed (saving files and making them readable)
Managing who holds the keys to which room (managing who is allowed to use which file)
Residents do not need to tinker with the facilities directly. By asking the manager, they can use the building's facilities with peace of mind. Similarly, applications can safely use computer components by asking the OS.
The Beginning of Linux
The history of Linux dates back to 1991.
Linus Torvalds, a university student in Finland, began creating the core part of an OS that would run on his own computer as a hobby. He then released it on the internet, allowing anyone to read, use, and improve it.
As a result, developers from all over the world began to join in the improvements. Some fixed bugs, some added new features, and some made it work on new hardware. The software, which started as the hobby of a single student, was nurtured by the hands of many, and it has now become one of the most widely used operating systems in the world.
Software that makes its blueprint, or "source code," public, allowing anyone to use, improve, and distribute it, is called "open source."
The kernel is the engine.
When you start learning about Linux, you will immediately encounter two terms: "kernel" and "distribution." This is the most important part of this session.
Kernel — The core of the OSStrictly speaking, the name "Linux" refers to the "kernel," which is the core part of the OS.
The word "kernel" means "seed of a fruit" or "core" in English. As the name suggests, it is at the center of the OS, directly managing components such as memory, the CPU, and storage devices. Among the manager's tasks mentioned earlier, the kernel is responsible for the most important parts.
However, we cannot use a computer with just the kernel. A mechanism to accept commands, tools to copy files, a system to install software, and a mechanism to display the screen—only when these many pieces of software are gathered around the kernel does it become a usable OS.
Distribution — A finished car equipped with an engineTherefore, a "distribution" is a collection of the kernel, surrounding tools, and, as needed, applications, bundled together into a ready-to-use form. The word means "distribution" in English.
If you compare the kernel to a car engine, a distribution is a complete car, built by combining the engine with tires, seats, and a steering wheel. Even if they use the same engine, there are passenger cars and trucks. There are many types of distributions, each with different purposes and philosophies. Ubuntu, Debian, and Red Hat Enterprise Linux are examples of this.
All of them use the Linux kernel at their core. While there are differences in versions and settings, much of the knowledge you gain from one distribution will be useful in others.
In this series, I will use "Ubuntu," which is easy for beginners to handle, for my explanations. We will look at the types of distributions and how to choose one in the next installment.
Looking at it in a diagramI will summarize the relationships discussed so far in a single diagram.
Please look at it from the bottom up.
At the very bottom, there is hardware (CPU, memory, storage devices, and network equipment).
Above that, the kernel manages the hardware directly. "Linux" in the narrow sense refers to this part.
On top of the kernel, there are basic tools (mechanisms for accepting commands, tools for handling files, etc.).
At the very top, the applications that we use run.
And a distribution is a collection of the kernel, surrounding tools, and, as needed, applications, bundled together into a usable form.
Applications cannot freely use computer components. The kernel manages the available memory, devices, and the scope of operations. Tasks like reading and writing files are performed by requesting the kernel to do so. This division of roles forms the foundation for the topics of files, permissions, and processes that we will learn about in the next installment and beyond.
Where is Linux running?
At the beginning, I wrote that "almost everyone uses Linux every day." Where is it actually running?
Internet servers Linux runs on many of the servers that support websites and internet services. Even in cloud services, most of the virtual machines created by users are Linux.
Smartphones Android smartphones are built based on the Linux kernel.
Supercomputers In the "TOP500" performance ranking of the world's supercomputers, all of the top 500 have been running on Linux since November 2017.
Everyday devices Linux is used in places we don't even notice, such as televisions, home routers, and car navigation systems.
Not many people use Linux as their computer OS yet. However, behind the scenes, Linux supports the foundation of our modern digital society.
How is it different from Windows?
For most people, the most familiar OS is likely Windows. Rather than saying one is superior to the other, we will look at them in terms of their origins and differences in how they are best used.
1. Who creates it and how do you get it? Windows is developed and sold by a single company called Microsoft. Its source code is not public. Linux is open-source software developed through the cooperation of developers and companies around the world. Many distributions can be obtained for free.
2. Main methods of operation Both Windows and Linux have methods for operating via on-screen buttons and menus, as well as via commands. While screen operation is convenient for everyday computers, when using Linux as a server, it is often managed via commands. In fact, it is not uncommon for servers to have no graphical interface installed at all.
3. How files are stored In Windows, file locations are separated by storage device, such as "C drive" or "D drive." Linux does not have drive letters. All files are organized in a tree-like structure branching out from a single starting point called "/ (root)." Also, Linux is case-sensitive, so "Memo.txt" and "memo.txt" are different files. We will cover this in more detail in Part 5.
4. Users and permissions In both operating systems, usable files and operations are separated by user. In Linux, a special administrator who can perform all operations is called "root." In Ubuntu, direct login to root is disabled by default; you usually work as a general user and borrow administrator privileges only when necessary using a command called "sudo." This is a design choice to make powerful privileges harder to use by accident. We will cover this in more detail in Part 6.
5. How to install software In Windows, it is common to download installation files from the provider's website or install them from the Microsoft Store. In Linux, the basic method is to use a mechanism called "package management" provided by the distribution. By typing a single command, the necessary software is installed along with its required components. We will cover this in more detail in Part 7.
6. Where it is commonly used Windows is widely used on personal computers. On the other hand, Linux is widely used in servers, the cloud, the core parts of smartphones, and everyday devices.
Note that it is a mistake to think that "if it's Linux, you don't need to worry about viruses." Linux also has vulnerabilities and can be a target for attacks. Regardless of the OS, it is important to keep it updated and manage permissions correctly.
If you are a Windows user, you can run Linux within Windows. This is a mechanism provided by Microsoft called "WSL (Windows Subsystem for Linux)." In Part 3, we will create a practice environment that includes this method.
The kernel has strong privileges within the OS
Finally, there is one more thing I want you to remember.
As seen in the diagram earlier, the memory, devices, and range of operations that an application can use are managed by the kernel. Which application gets to use which memory? Who can read which file? The kernel decides these things. In other words, the kernel has strong privileges within the OS.
The kernel separates the memory available to each application and manages it so that one application cannot read or rewrite the memory of another without permission. However, there are also mechanisms that allow access based on privileges and settings for management or investigation purposes. Conversely, if the kernel or the root privilege, which can perform all operations, is compromised, these boundaries can be crossed. That is why it is important to keep the kernel and software updated.
Furthermore, there is a technology called "confidential computing" that attempts to protect data even from strong privileges like the OS. Which parts can be protected depends on the boundary of protection. We will touch on this at the end of the series, along with virtualization.
The "black screen" is not scary
When people think of Linux, many imagine a black screen with white text being typed into it. This screen is called a "terminal."
In the terminal, instead of clicking buttons with a mouse, you type short instructions called "commands" as text. You might be confused at first. However, commands have advantages that mouse operations do not.
What you did remains as a record in text
The same operation can be repeated accurately as many times as you like
You can operate a server in a remote location just as if it were right in front of you
And, in a practice environment, it becomes easier to start over if you make a mistake. In the third installment, we will prepare a practice area that is unlikely to affect the files you use daily, and start by checking the scope of work and points to be careful about.
Let's review
Can you answer the following questions in your own words? If you are unsure, please try re-reading the main text.
What role does an OS play within a computer? Let's try explaining it using the analogy of an apartment building.
What do the terms "kernel" and "distribution" refer to, respectively?
What roles do applications and the kernel share, respectively?
List three things around you that run on Linux.
What is the difference between Linux and Windows in how files are stored?
For those who want to learn more
The Linux Kernel Archives (English, Beginner to Advanced) This is the official website for the Linux kernel. You can check that development is still ongoing and see the latest versions.
Ubuntu Official Website (Japanese, Beginner) This is the official website for Ubuntu, which we will use in this series. Please take a look before the next installment.
Next time, we will look at the characteristics of major distributions such as Ubuntu, Debian, and Red Hat Enterprise Linux, as well as how to choose one.
The next article is here↓
Main References
The Linux Kernel Archives
TOP500: Operating System Family (Breakdown of OS for systems in the ranking)
Ubuntu Official Website
Android Open Source Project: Kernel Overview
Ubuntu Server documentation: User management
Microsoft Learn: Working across file systems in WSL
This article is an introductory explanation compiled independently based on public documents. Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.