What is Linux? A guide for beginners
Learn what Linux is, the difference between a kernel and an operating system, what distributions are, and how to try Linux safely without wiping your computer.
Beginner$ cat /etc/os-release▍You probably use Linux every day without knowing it. It’s in your Android phone, in the servers that deliver your favorite websites, and even in routers and smart TVs. In this article, we’ll look at what Linux is, where it came from, and how you can start using it today, without any fear of breaking things.
Kernel vs. operating system: what’s the difference?
An operating system is the software that sits between you and the hardware (processor, memory, disk). Windows and macOS are examples.
Inside every operating system there is a kernel. Think of a car: the kernel is the engine. It decides which program gets to use the processor, how much memory each one receives, and how to talk to the disk and the network. But nobody drives just an engine: you also need a steering wheel, seats, and a dashboard.
Technically, Linux is the name of the kernel. Many of the tools that turn that engine into a complete car (the terminal, commands like ls and cp, the compiler) come from the GNU Project, started by Richard Stallman in 1983. That’s why some people prefer to say “GNU/Linux”.
When someone bundles the Linux kernel, the GNU tools, an installer, and a way to install software, you get a distribution (or “distro”). Ubuntu and Fedora, for example, are distributions.
A bit of history
In 1991, a Finnish student named Linus Torvalds started Linux as a personal project and shared it on the internet. Other programmers began contributing, and the project grew into what it is today.
Linux is open source: anyone can read, study, modify, and redistribute the code, following the rules of the GPL license. Want to understand these licenses better? Check out the article on open source, GNU, MIT, and GPL.
Where Linux runs
- Servers and the cloud: most of the websites and services you use run on Linux servers, and it’s the most common system on the virtual machines offered by cloud providers.
- Phones: Android uses the Linux kernel (with many Google-specific layers on top).
- Containers: technologies like Docker use Linux kernel features to isolate applications.
- Supercomputers: the fastest computers in the world run Linux.
- Embedded systems: routers, TVs, cars, and IoT devices.
Popular distributions
| Distribution | Good for |
|---|---|
| Ubuntu | Beginners, desktops, and servers; tons of tutorials and material online |
| Debian | Stability; the base of Ubuntu and many other distros |
| Fedora | People who want newer software; sponsored by Red Hat |
| Red Hat Enterprise Linux (RHEL) | Companies that need commercial support and long update cycles |
| Arch Linux | People who want to build the system piece by piece and learn in depth |
| Alpine | Containers and small systems; a very lightweight base image |
If you’re not sure, start with Ubuntu: it’s easy to install, and almost every tutorial has a version for it.
Why anyone heading into DevOps needs to know Linux
In DevOps, you’ll configure servers, read logs, build container images, and automate tasks. Almost all of this happens on Linux machines, usually without a graphical interface, only through the terminal. Knowing how to move around folders, read files, and understand permissions is the foundation for Docker, Kubernetes, CI pipelines, and pretty much everything else.
The basic structure of Linux
Files and folders
On Linux, everything lives in a single folder tree that starts at the root, written as /. There’s no “C:” or “D:”.
| Path | What it holds |
|---|---|
/ |
The root: where everything starts |
/home |
Users’ personal folders (e.g., /home/your-user) |
/etc |
System configuration files |
/var/log |
Logs: records of what the system and programs have done |
Users and root
Each person uses the system with a regular user account. There’s also root, the superuser, who can do anything, including deleting the entire system. For safety, you work as a regular user and use the sudo command only when you need administrator permission, such as when installing software.
Permissions
Every file has an owner and rules for who can read (r), write (w), and execute (x) it. It’s like a box with a lock: the owner chooses who can open it, who can change it, and who can run what’s inside. The ls -l command shows these permissions.
Packages
On Linux, software is installed as packages through a package manager, which works like an app store for the terminal. On Ubuntu and Debian it’s called apt; on Fedora and RHEL, dnf.
How to try Linux safely
You don’t need to delete Windows or buy another computer:
- WSL on Windows: runs a real Linux inside Windows. See the article What is WSL.
- Virtual machine: programs like VirtualBox create a “computer inside your computer.” If something goes wrong, just delete the VM.
- Live USB: many distros can run straight from a USB stick, without installing anything on your disk.
- Cloud VM: cloud providers let you create a Linux server in minutes. Keep an eye on costs and shut the machine down when you’re done.
Your first commands
Open the terminal (if you don’t know how yet, see how to use the terminal) and try these. None of them change anything on your system:
whoami # shows your user
pwd # shows which folder you're in
ls -l /etc # lists configuration files with permissions
cat /etc/os-release # shows which distribution you're using
uname -r # shows the Linux kernel version
df -h # shows free disk space
And to refresh the package list on Ubuntu or Debian (it will ask for your password):
sudo apt update
Try it yourself
- Get Linux running in a safe way: WSL, a virtual machine, or a live USB
- Run
cat /etc/os-releaseand find out the name and version of your distribution - Use
uname -rto see the kernel version - Go to
/var/logwithcd /var/logand list the files withls - Run
ls -l ~and try to identify the owner and permissions of each file - Explain, in your own words, the difference between a kernel and a distribution
Next steps
- How to use the terminal on Linux, Mac, and Windows
- What is a shell and shell scripting?
- What is WSL?
- What is DevOps?
Every Linux expert typed their first
lsone day — today it’s your turn.