Skip to content
DevOpsbeginner

What is Linux?

Updated Nov 30, 20263 min readBased on official documentation
What is Linux?

In short

Linux is an open-source operating system kernel, the core part of an operating system that manages hardware and runs programs. Most servers, cloud machines and Android phones run Linux. Developers use it because it is free, flexible and well documented.

What Linux actually is

An operating system is the software that sits between your hardware and your programs. Its most important part is the kernel. The kernel talks to the processor, memory, disks and network cards, and it decides which program gets to run and when.

Linux is the name of that kernel. It was started in 1991 and is developed in the open by a large community of companies and volunteers. The source code is free to read, change and share under an open license. The official kernel project is hosted at kernel.org, and its documentation is a good place to check facts about the kernel itself.

When people say "Linux" they often mean a whole system: the Linux kernel plus tools, libraries and a desktop or server setup. Distributions such as Debian, Ubuntu, Fedora and Alpine package these pieces together. The kernel is the shared core they all have in common.

How it works

The kernel has a few main jobs. It manages processes, which are running programs. It manages memory, so each program gets its own space and does not overwrite another. It manages devices through drivers, which are small pieces of code that know how to speak to a specific piece of hardware. It also provides a set of system calls, which are the official doorways that programs use to ask the kernel for work, such as opening a file or sending data over the network.

The kernel also exposes information about itself through virtual filesystems. The /proc and sysfs directories look like normal folders, but their files are generated by the kernel on the fly. Reading them tells you about running processes, memory use and hardware. Writing to some of them changes kernel settings. The official guide explains that these interfaces are a big part of how administrators interact with the kernel.

When a machine starts, the kernel is loaded first. It then sets up devices and starts the first user-space process, which then starts everything else. The official guide covers boot options and the initial RAM disk, a small temporary filesystem used during startup.

When to use it

Linux is a common choice for servers, containers, cloud virtual machines, embedded devices, routers and phones. Many web applications run on Linux because its tools are mature and free. If you deploy software to a server, you will very likely meet Linux.

For a beginner, the most practical way to start is with a virtual machine or a container running a common distribution. You can try commands, install packages and break things without risk to your main computer. Our pages on DevOps topics are a good next step once you feel comfortable at the command line.

A simple example

Open a terminal on a Linux system and try a few commands. They show how the kernel reports its own state.

uname -r
cat /proc/cpuinfo | head -n 5
free -h
ls /proc | head -n 10

The first command prints the kernel release number. The second shows the start of the processor information that the kernel exposes. The third shows memory use. The fourth lists some of the numbered folders in /proc, where each one describes a running process. None of these commands change anything, so they are safe to run.

Common mistakes

A frequent mistake is to confuse Linux with a full desktop operating system. Linux alone is only the kernel. The graphical desktop, the shell and the utilities usually come from the distribution you install.

Another mistake is changing kernel settings through /proc or sysfs without knowing the effect. Some settings take effect at once and can affect the whole machine. Read the documentation for a setting before you change it, and prefer testing in a virtual machine.

Beginners also sometimes assume that the version number of a distribution and the kernel version are the same thing. They are different. Check the kernel version with uname -r.

Other operating systems exist. Windows and macOS are the most common desktop choices. BSD systems such as FreeBSD and OpenBSD are close relatives of Linux in spirit but have their own kernels. For many developers, the question is less about which system is best and more about which system their servers and tools expect. Learning Linux basics transfers well, because most server software is written with Linux in mind.

FAQ

Is Linux the same as Ubuntu?

No. Linux is the kernel, and Ubuntu is a distribution that packages the kernel with tools, libraries and an installer. Other distributions such as Fedora and Debian use the same kernel with different packages.

Do I need to pay to use Linux?

The kernel is free to download, use and modify under an open source license. Some companies sell support or commercial distributions, but you are not required to pay to run it.

Can I use Linux without knowing the command line?

Yes, desktop distributions have graphical interfaces. For servers and development work, however, learning basic terminal commands quickly pays off.

How can I check which Linux kernel version I have?

Run uname -r in a terminal. It prints the kernel release number, which is separate from the name and version of your distribution.

Sources

This page is based on the official documentation below. Read it for full detail.

Linux — official documentation ↗

Linux in the news

blozhikDeveloper news from across the web, explained. Every story links to its original sources.