Linuxabc logo – a guide to Linux for beginners

How does a computer work?

From the power button to the Linux desktop

Introduction

A computer is made up of hardware and software. Hardware means the physical parts, such as the processor, RAM, SSD, motherboard and graphics card. Software means the operating system, applications and instructions that tell the computer what to do.

Simply put

Hardware is the body of the computer, while software provides the instructions. A Linux distribution connects applications with the hardware and helps all of these parts work together.

Main computer components

The images below show the main parts of a desktop and laptop computer. You do not need to know every detail at first – it is enough to understand what the processor, RAM, storage, motherboard and graphics card are for.

Main components of a desktop computer: processor, RAM, motherboard, power supply, graphics card, storage drive, optical drive and CMOS battery.
Figure 1: Main components of a desktop computer.
Main components of a laptop: processor, RAM, storage drive, motherboard, battery and optical drive.
Figure 2: Main components of a laptop.

Hardware – what does each part do?

RAM is the workbench; SSD or HDD is the cupboard

Applications and files are stored long-term on the SSD or HDD. When you use them, the data that is currently needed is loaded into RAM, where the processor can work with it quickly. RAM is therefore the working space, while SSD and HDD are the storage space.

What happens when you turn on the computer?

A lot happens in just a few seconds after you press the power button. For a beginner, the process can be pictured like this:

  1. The computer receives power. The power supply or battery starts supplying electricity to the components.
  2. UEFI or BIOS starts. This is firmware stored in special memory on the motherboard. It checks the basic hardware and determines which device should be used to start the operating system.
  3. The boot loader starts. On many Linux systems this is GRUB. If several operating systems are installed, GRUB can display a menu for choosing one.
  4. The Linux kernel is loaded. The kernel begins managing the processor, memory, storage devices, hardware and drivers.
  5. System services start. The system prepares networking, sound, user login and other necessary functions.
  6. The login screen or desktop appears. The computer is ready to use.

Boot process in one line

Power button → UEFI/BIOS → GRUB or another boot loader → Linux kernel → system services → login → desktop.

What does the processor actually do?

You can think of the processor as an extremely fast worker that follows instructions. It does not think like a person. Instead, it constantly performs huge numbers of simple operations: calculate a value, compare data, move data or read the next instruction.

Very simply, its work can be described as: fetch an instruction → understand it → execute it → move to the next one. This process happens extremely quickly.

The processor does not work alone

The processor needs RAM for quickly accessible data, storage for long-term data, a graphics system for displaying images and an operating system that coordinates everything.

RAM – working memory

RAM is the space the computer uses while it is running. When you open an application, the parts of the program and data that are needed are loaded from the SSD or HDD into RAM. The processor can then access them much faster than if it had to read everything directly from storage.

More open applications, browser tabs and large files usually mean more RAM is being used. If the system starts running short of RAM, the computer may become slower.

What happens to RAM when the computer is turned off?

RAM is volatile memory. It needs electrical power to retain its contents. When the computer is turned off, the contents of RAM do not remain permanently stored in normal use. That is why a document must be saved to an SSD or HDD if you want to use it after the next restart.

SSD and HDD – longer-term storage

SSDs and HDDs store the operating system, applications, documents, photos and other files even when the computer is turned off.

For the operating system and everyday use, an SSD is usually the better choice today. An HDD can still be useful for large collections of data or additional backups.

What happens when you open an application?

Suppose you click the Firefox icon. In a very simplified form, this is what happens:

  1. the operating system finds the application on the SSD or HDD,
  2. the parts that are needed are loaded into RAM,
  3. the processor begins executing the application's instructions,
  4. the application uses the network, storage, keyboard, mouse and other devices through the operating system,
  5. the graphics system and GPU prepare the image you see on the screen.

The path of the data

SSD/HDD → RAM ↔ CPU → GPU → display.
When you save a file, the data is written back to long-term storage.

Software

Software means the programs and systems that tell the computer what to do. Without software, a computer would only be a collection of electronic parts.

How does an application reach the hardware?

An application usually does not communicate directly with every device in the computer. There are several layers between the application and the hardware.

A simple path

Application → operating system → Linux kernel → driver → hardware.

This is why the operating system matters so much: it coordinates access to the processor, RAM, storage, graphics, sound, networking and other hardware in an organised way.

What happens when you shut down the computer?

When you choose “Shut down”, the operating system first tries to close applications safely, write the necessary data to storage and stop system services. Only then does the computer switch off the power.

Data that has been correctly saved to an SSD or HDD remains there. The working contents of RAM do not remain permanently stored without power.

That is why you should not simply disconnect the power

A sudden loss of power can interrupt data being written to storage. Whenever possible, shut the computer down through the operating system.

Computer terms – a short glossary

These are short explanations of terms that beginners often encounter when learning about Linux, installing a system or discussing computer hardware.

Processor (CPU)

The processor executes program instructions and processes data.

More on Wikipedia

RAM

RAM is temporary working memory for data and programs that are currently in use.

More on Wikipedia

SSD

An SSD is a fast storage drive with no moving mechanical parts.

More on Wikipedia

HDD

An HDD is a traditional hard disk drive with magnetic platters and mechanical parts.

More on Wikipedia

Graphics processor/card (GPU)

A GPU helps process and display graphics, video and games.

More on Wikipedia

Motherboard

The motherboard connects the processor, RAM, storage and other components.

More on Wikipedia

BIOS / UEFI

BIOS or UEFI is firmware stored in special memory on the motherboard. It starts when the computer is powered on and prepares the hardware for booting the system.

More on Wikipedia

GRUB

GRUB is a commonly used Linux boot loader. It can also allow you to choose between several installed operating systems.

GNU GRUB official website

Driver

A driver allows the operating system to communicate with particular hardware.

File system

A file system defines how files and folders are organised and stored on a drive.

Partition

A partition is a logically separated part of a storage drive that an operating system can use as a distinct area.

Server

A server is a computer or system that provides services to other devices, such as websites or files.

More on Wikipedia

NAS

A NAS is network storage that can be accessed by several computers or phones on a network.

More on Wikipedia

Virtual machine

A virtual machine lets you run another operating system inside your current one without changing the main system.

More on Wikipedia

Backups

A backup is a copy of important data that you can use if a drive fails, files are deleted by mistake or another problem occurs.

The 3-2-1 rule

A useful rule is to keep 3 copies of your data, on 2 different types of media, with 1 copy stored in another location.

Conclusion

A computer is not one single part doing everything by itself. It is a system of components working together: the processor executes instructions, RAM provides temporary working space, SSD or HDD stores data, and the operating system coordinates the whole process.

Once you understand this basic picture, Linux, system installation, drivers, partitions, upgrades and troubleshooting become much easier to understand.

If you remember only four things

  • CPU executes instructions,
  • RAM is temporary working space,
  • SSD/HDD provide longer-term storage,
  • the operating system coordinates applications and hardware.
← Back to home