Software & OS

Introduction to Linux for Beginners: What It Is and How to Start

Linux is a free, open-source operating system kernel that runs on everything from phones and servers to laptops. You use it through a distribution such as Ubuntu or Debian, and you can try one today without touching your current system.

This introduction to Linux covers what the word means, how it differs from Windows and macOS, how to pick a first distribution, and three low-risk ways to start. It assumes no previous experience with a terminal.

What is Linux?

Strictly, Linux is a kernel, the core program that talks to your hardware and shares memory and processor time between programs. The kernel documentation describes it as "a clone of the operating system Unix, written from scratch by Linus Torvalds", and says it aims towards POSIX and Single UNIX Specification compliance. It was first developed for 32-bit x86 PCs and now runs on many other architectures, including ARM, PowerPC, MIPS, SPARC and x86-64.

The kernel is distributed under the GNU General Public License version 2. In practice that means anyone may read the source code, change it and pass it on under the same terms, which is why so many different systems are built on it.

A kernel alone is not something you can sit down and use. You also need a way to start programs, a shell for typing commands, system libraries, tools for managing files and a way to install software. The next section covers who bundles those pieces. For a deeper look at the layers and the boot process, see How Linux Works: Kernel, Distros and Shell Explained.

What is a Linux distribution?

A distribution (distro) is the kernel plus everything around it, packaged and maintained by a project or company. When someone says "I installed Linux", they almost always mean they installed a distribution. Microsoft's WSL documentation lists several that are available, including Ubuntu, Debian, SUSE, Kali, Fedora and Alpine.

Distributions differ in what they include and how they are run. Some ship a polished desktop and are aimed at newcomers. Others are minimal and meant for servers or containers. They differ in how often they release new versions, which software installer they use, and how long they support each version. The commands you type in a terminal, such as ls and cd, are essentially the same across them.

How is Linux different from Windows and macOS?

The differences you will notice first are about choice and structure rather than looks.

TopicWindowsmacOSLinux
Who supplies the systemMicrosoftAppleMany distributions, each from a different project or company
Source codeClosedMostly closedThe kernel is open source under GPL v2
DesktopOne standard desktopOne standard desktopDepends on the distribution; several desktops exist
File layoutDrive letters such as C:\One tree starting at /One tree starting at /
Command linePowerShell, Command Promptzsh (Terminal app)Usually Bash, in a terminal app

The single file tree is the change that confuses people most. Linux has no drive letters. Every disk and folder hangs off one root directory called /. If that is new to you, the Linux root directory explained walks through it.

How can I try Linux without installing it?

You have three safe options. None of them requires you to wipe your disk.

Option 1: WSL on Windows

The Windows Subsystem for Linux runs a real Linux distribution inside Windows. Microsoft's documentation says you need Windows 10 version 2004 or later (build 19041 and higher) or Windows 11. Open PowerShell as administrator and run:

wsl --install

This enables the features WSL needs and installs Ubuntu by default. Restart when asked. The first time you start the distribution, a console window opens and asks you to wait while files are unpacked, then you create a user name and password. To see other distributions, run wsl --list --online, and install one with wsl --install -d <DistroName>.

WSL is the quickest route if you are on Windows and mainly want to learn the command line. It gives you a terminal, not a full Linux desktop.

Option 2: a live USB stick

A live session boots the whole Linux desktop from a USB stick or DVD without installing it. Ubuntu's tutorial says to insert the stick, restart, and, if the computer does not boot from USB on its own, open the boot menu at startup. F12 is suggested, with Escape or F2 as common alternatives; the key varies by manufacturer. On the welcome screen, choose Try Ubuntu.

Ubuntu states that a live session does not change your computer's configuration, and restarting without the stick returns the machine to its previous state. Expect it to feel slower than an installed system, because it runs from removable media. Changes you make, such as files you save, are normally lost when you shut down unless you copy them elsewhere. Note that Ubuntu has marked this particular tutorial as replaced by a guide in its product documentation, so the menu wording may differ in newer releases.

Option 3: a virtual machine

A virtual machine program lets you install a distribution into a window on your current system. It is the closest thing to a real install without any risk to your disk partitions. You download an installer image from the distribution's website, create a new virtual machine, and boot it from that image. The steps depend on the program you use, so follow its own documentation.

What should I learn first?

Once you have a terminal open, start with five ideas.

  • Where you are. pwd prints the current directory, ls lists its contents and cd moves to another directory.
  • Everything is a path. Paths begin at /. Your own files live in your home directory, which the shell abbreviates as ~.
  • Permissions. Every file has an owner and read, write and execute permissions. Commands that change the system need administrator rights, which you usually get by putting sudo in front of them. Read the command and know what it does first.
  • Software comes from a package manager. Each distribution has one, and it installs and updates programs from the distribution's own repositories. The command differs between distributions.
  • Help is built in. Run man followed by a command name to open its manual page.

On that last point, the man page for man explains that it displays pages through the less pager by default, so press q to quit and h for help. You can also search page names and short descriptions with man -k and a keyword, which is equivalent to running apropos. For example:

man ls
man -k printf

A page can exist in more than one section of the manual. A section number before the name, as in man 7 man, makes man look only in that section.

Our basic Linux commands guide goes through the everyday commands with real output and the errors beginners meet. When a command you want to run touches file ownership, Linux file permissions and chmod explains what the letters and numbers mean.

Should I install Linux on my computer?

Not until you have tried it first. If you try WSL or a live session and decide you like it, the next step is a full install. You can replace your current system, or keep Windows and add Linux next to it. That second route is called dual booting and needs some preparation, such as a backup and checking disk encryption. The article How to Dual Boot Linux and Windows 11 covers the steps in order.

Whichever way you go, back up your files before changing partitions. Installers ask which disk to use, and picking the wrong option can erase data.

Common beginner problems

  • The USB stick does not boot. The computer is probably starting from its internal disk. Open the boot menu at startup (the key is often F12, Escape or F2, depending on the manufacturer) and choose the USB device.
  • wsl --install prints the help text. Microsoft says the command only works when WSL is not installed at all. Run wsl --list --online to see distributions, then wsl --install -d <DistroName>.
  • The install hangs at 0.0%. Microsoft suggests wsl --install --web-download -d <DistroName>, which downloads the distribution first.
  • A program you use on Windows is not available. Many have Linux versions or open-source alternatives, but some do not. Check before you commit to a full switch.

Frequently asked questions

Is Linux free?
The Linux kernel is distributed under the GNU General Public License version 2, which lets you run, study, change and share it. Many distributions can be downloaded and used at no cost, but each one bundles software under its own licences, and some vendors sell paid support, so check the terms of the distribution you pick.
Can I try Linux without deleting Windows?
Yes. On Windows 10 (version 2004 or later) and Windows 11, the command wsl --install in an administrator PowerShell installs Ubuntu inside Windows. You can also boot a live USB stick, which according to Ubuntu leaves the computer's configuration unchanged, or run Linux in a virtual machine.
Which Linux distribution should a beginner choose?
Pick a mainstream distribution with a large community and plenty of documentation. Ubuntu is the default that Microsoft installs with WSL, which is one reason many tutorials assume it. Debian and Fedora are also widely documented. The basic commands are the same on all of them.
Do I have to use the terminal on Linux?
Not for everyday use. Desktop distributions come with a graphical desktop, a file manager and a software installer. The terminal becomes useful for administration, servers and automation, where typed commands are faster and can be scripted.

Sources