Knowledgebase

Find frequently asked questions and setup guides by searching or by browsing the categories.

Linux in Two Sentences

Linux is an operating system kernel: the core program that starts other programs, shares out processor time and memory, and talks to disks and network cards. A Linux distribution packages that kernel with a shell, core commands, libraries, an installer, and a package manager, which together make a system you can log in to and run software on.

When someone says a server "runs Linux", they mean a distribution such as Ubuntu, Debian, AlmaLinux, or Rocky Linux. The kernel comes from the same project in all of them; the versions, defaults, and tools around it differ.

Kernel, User Space, and Distribution

  • Kernel: one program, developed in public by thousands of contributors. It manages hardware, processes, memory, file systems, and networking.
  • User space: everything you work with directly: the shell, commands such as ls and cp, the init system systemd, the SSH server, and the libraries applications use.
  • Distribution: a project that chooses versions of all these parts, tests them together, publishes security updates, and decides how long each release is supported.

Why Most Servers Run Linux

  • Remote work by design: every task can be done over SSH in a text terminal. No graphical desktop is needed, so memory and processor time go to your applications.
  • Server software targets it: web servers, databases, container tools, and language runtimes are usually built and tested on Linux first.
  • Long support: server distributions keep a release patched for years, as explained in what is an LTS release.
  • Open-source license: anyone can read the code, fix it, and build on it, so problems are found and patched in public.

The Main Server Distributions

FamilyDistributionsPackage tool
DebianDebian, Ubuntuapt
Red HatRHEL, AlmaLinux, Rocky Linuxdnf

Within a family, commands and file locations are almost the same, so what you learn on one system carries over to the others. The differences inside each family are covered in Debian vs Ubuntu Server and AlmaLinux vs Rocky Linux.

What the License Allows

The kernel is published under the GNU General Public License, version 2 only, plus a note that ordinary programs using the kernel's system calls do not fall under it. The license lets you run the software for any purpose, read and change the source code, and pass it on, changed or not. If you distribute the kernel, changed or not, you must make its source code available under the same license. The rest of a distribution combines software under many open-source licenses, such as the GPL and the MIT, BSD, and Apache licenses.

See It on Your Server

Three commands show the kernel, the distribution, and your shell:

uname -r
cat /etc/os-release
echo $SHELL

uname -r prints the running kernel version, /etc/os-release names the distribution and release, and the last line shows your login shell, usually /bin/bash. More ways to read versions are in how to check the kernel version in Linux.

The Shell

The shell is the program that reads what you type and runs it. On servers it is almost always Bash. A prompt ending in $ means a normal user; # means root. Bash also runs scripts, so commands you type by hand can be saved and repeated. Other shells are compared in types of shells in Linux.

Package Managers

Software is installed from the distribution's repositories with a package manager, which also handles dependencies and updates:

# Debian and Ubuntu
sudo apt update
sudo apt install rsync

# AlmaLinux and Rocky Linux
sudo dnf install rsync

The two apt front ends are explained in apt vs apt-get.

What to Learn First

  1. Connect to the server: how to SSH into a server.
  2. Move around and read files with the commands in the Linux commands cheat sheet.
  3. Work as a normal user with sudo instead of root: what is sudo.
  4. Start, stop, and check services: what is systemd.
  5. Secure a new server step by step with the initial server setup checklist.
Was this answer helpful?
Loading...