What Is Linux? How It Works, Distributions and Uses

Sunucun 4 min read

Short answer: Linux is a free, open-source operating system kernel started by Linus Torvalds in 1991. In everyday language, “Linux” means the Linux distributions built by adding tools, a package manager and an optional desktop on top of that kernel; Ubuntu, Debian, Fedora and AlmaLinux are the best known. It runs on everything from web servers and Android phones to routers and supercomputers.

Illustration: Linux

What Is Linux Used For?

Like Windows and macOS, Linux is the operating system foundation that manages a computer’s hardware and lets programs run. The difference is that its source code is open to everyone and most distributions can be used without a licence fee. That’s why it’s especially popular on servers, in cloud infrastructure and on embedded devices.

A Short History of Linux

The Linux kernel was started in 1991 by Finnish programmer Linus Torvalds as a hobby project. Since 1992 the kernel has been distributed under the GNU General Public License version 2 (GPLv2), which allows anyone to study, modify and share the code. Combined with the GNU project’s tools, Linux became a complete operating system. Today thousands of developers and companies around the world contribute to the kernel.

How Does Linux Work?

A Linux system is made up of layers:

  1. Kernel: manages hardware such as the CPU, memory, disks and network card, and lets programs access hardware safely.
  2. System tools and libraries: programs that do core jobs such as file operations, user management and network settings.
  3. Shell: the interface where you manage the system by typing commands; the most common is Bash.
  4. Desktop environment (optional): graphical interfaces such as GNOME, KDE Plasma or Xfce. Usually not installed on servers.
  5. Package manager: lets you install and update software with a single command (e.g. apt, dnf).

Popular Linux Distributions

DistributionKey featureTypical use
UbuntuLarge community, long-term support (LTS) releasesDesktop, server, cloud
DebianFocused on stability; also the base of UbuntuServer
FedoraBrings new technologies earlyDeveloper desktop
AlmaLinux / Rocky LinuxRHEL-compatible and freeEnterprise servers, cPanel servers
Linux MintAn interface familiar to people coming from WindowsHome and office desktop
Kali LinuxComes with security testing toolsPenetration testing, training

For a detailed comparison see our popular Linux distributions article, and for Ubuntu specifically our what is Ubuntu and how to install Ubuntu guides.

Where Is Linux Used?

  • Servers: most web, database and email servers run on Linux. Shared hosting services are mostly Linux-based too.
  • Cloud and containers: Docker containers and Kubernetes rely on features of the Linux kernel.
  • Mobile devices: Android uses the Linux kernel.
  • Supercomputers: every supercomputer on the TOP500 list has run Linux since 2017.
  • Embedded systems: routers, smart TVs, car infotainment systems and IoT devices.
  • Desktop: software development, reviving old computers and privacy-focused use.

Linux vs Windows

FeatureLinuxWindows
Source codeOpenClosed
LicenceMost distributions are freePaid licence
Installing softwarePackage manager (apt, dnf)Installer file or Microsoft Store
Server managementMainly command line and SSHGraphical interface, PowerShell and Remote Desktop
Typical server useWeb, databases, containersASP.NET, MSSQL, Active Directory

We cover the server-side differences in detail in our Windows vs Linux server and server operating systems articles.

Advantages and Disadvantages of Linux

AdvantagesDisadvantages
Free and open source; no licence costSome commercial desktop programs have no Linux version
Can run on modest hardwareThe command line takes some learning at first
A strong user and permission modelDriver support can be limited on some hardware
Long-term support releases and fast security updatesThe number of distributions can confuse beginners

How to Check Which Linux Version You Have

# Distribution name and version
cat /etc/os-release

# Kernel version
uname -r

First Steps with Linux

  1. If you’re new, choose a user-friendly distribution such as Ubuntu or Linux Mint.
  2. To try it without changing your computer, install the distribution in a virtual machine (VirtualBox, VMware) or boot it from a USB stick in live mode.
  3. Learn the basic commands: ls, cd, pwd, cp, mv, rm, sudo. See our Ubuntu terminal guide for more.
  4. Try installing software with the package manager: sudo apt update && sudo apt install htop.
  5. As a next step, connect to a Linux server over SSH and try installing a simple web server (Nginx or Apache). A Linux VDS server is a handy place to practise.

Frequently Asked Questions

Is Linux an operating system or a kernel?

Technically, Linux is a kernel. The operating systems created when the kernel is packaged with system tools and applications are called Linux distributions.

Is Linux free?

The kernel and most distributions are free. Some enterprise distributions such as Red Hat Enterprise Linux are offered with paid support subscriptions.

Can Linux get viruses?

Malware exists for Linux too; internet-facing servers in particular are targeted. Updating regularly, turning off unnecessary services and using strong authentication are the basic precautions.

Do Windows programs run on Linux?

Some can run with compatibility layers such as Wine or Proton, but not every program is supported. If needed, you can run Windows in a virtual machine.

Conclusion

Linux is an open-source kernel and the family of distributions built on it. Being free, stable and flexible, it’s used everywhere from servers to phones. To get started, try a distribution such as Ubuntu in a virtual machine and learn the basic commands.

Categories

Latest guides