# What's Inside a Computer? CPU, RAM and Storage Explained for Beginners

Every IT problem you'll ever fix runs on real hardware, and so does every system you'll test as a hacker. You don't need to build a computer to start, but you do need a mental picture of what's inside one. When someone says "my PC is slow", the cause is usually one of a handful of parts, and by the end of this post you'll know which.

## The kitchen analogy

Think of a computer as a kitchen.

![The kitchen analogy: the CPU is the chef, RAM is the counter, storage is the pantry, the motherboard is the kitchen layout and the GPU is a specialist](https://cdn.hashnode.com/uploads/covers/6afe08476920da9a67541ede/2b075c72-bc62-41a4-9de0-6fca19439117.png align="center")

- The **CPU** is the chef who does the work.
- The **RAM** is the counter where the chef keeps what they're working on right now.
- The **storage** is the pantry where everything is kept when you're not using it.
- The **motherboard** is the layout of the kitchen that connects everything.
- The **GPU** is a second specialist who handles one kind of job very fast.

The analogy has limits, but it will help you remember which part does what.

![Where the main parts sit inside a desktop computer](https://cdn.hashnode.com/uploads/covers/6afe08476920da9a67541ede/f32cc435-ad8d-45af-9459-d8a150153d20.png align="center")

## CPU (processor)

The CPU (central processing unit) carries out instructions: do this calculation, move this data, compare these two values. Everything your computer does is a long sequence of these.

- **Cores.** A modern CPU has several cores, which are like several chefs working at once. More cores help when you run many things at the same time.
- **Clock speed.** Measured in gigahertz (GHz). It's how many cycles per second each core runs. It's not the only thing that determines speed, so don't compare CPUs on GHz alone.

If a CPU is stuck near 100% for a long time, the computer feels slow because something is demanding more work than it can do.

## RAM (memory)

RAM (random access memory) holds the data your computer is using right now: open programs, open browser tabs, the document you're editing. It's very fast, and it's temporary. When you turn the computer off, RAM is wiped.

If you run out of RAM, the computer starts using the much slower storage as overflow, and everything gets sluggish. This is the cause of many "slow computer" tickets. It's also why people who run virtual machines need plenty of RAM. For a beginner lab with a couple of virtual machines, 16 GB is comfortable, and 8 GB can work but gets tight.

## Storage

Storage keeps your files, programs and the operating system, even when the power is off.

- **HDD (hard disk drive).** Has spinning disks. It's cheap and holds a lot, but it's slow.
- **SSD (solid-state drive).** Has no moving parts. It's much faster, and most modern computers use one. NVMe SSDs, which plug straight into the motherboard, are faster still.

A computer with an old HDD can take minutes to start. Replacing it with an SSD is one of the most noticeable upgrades you can make.

## Motherboard

The motherboard is the main circuit board. The CPU, RAM, storage and other parts all plug into it, and it lets them talk to each other. It also provides the ports on the back: USB, network, video and audio.

![A real motherboard up close. The long black slots at the bottom right hold the RAM sticks, and the long slots at the top take expansion cards such as a graphics card](https://cdn.hashnode.com/uploads/covers/6afe08476920da9a67541ede/49b3a566-4682-4576-baf0-88fa5595ca7f.jpg align="center")

*A real motherboard. Photo: Lenharth Systems, public domain (CC0), via* [*Wikimedia Commons*](https://commons.wikimedia.org/wiki/File:Computer_Motherboard_Closeup.jpg)*.*

It also holds the **BIOS or UEFI**, the small program that runs first when you press the power button. It checks the hardware, then hands control to the operating system. You'll visit it later to turn on virtualization for your lab.

## GPU (graphics card)

The GPU (graphics processing unit) draws what you see on the screen, and it's designed to do many small calculations at the same time. That's why it's used for games, video editing and AI. In security it's also used to test how strong passwords are by cracking their hashes in a lab, which is a topic for a later post.

Many computers have graphics built into the CPU, and that's enough for everyday work. A separate GPU matters for gaming and heavy graphics.

## Other parts you'll meet

- **Power supply (PSU).** Turns wall power into the right voltages for each part.
- **Network card (NIC).** Connects the computer to a network, by cable or Wi-Fi. Each NIC has a hardware address called a MAC address, and you'll see them again in the networking posts.
- **Cooling.** Fans and heat sinks. When a computer overheats, it slows itself down to protect the parts.

## What the operating system does

The operating system (Windows, Linux, macOS) sits between you and the hardware. It decides which program gets the CPU's attention, how memory is shared, and where files are stored. When you click a program, the operating system finds it on the storage, loads it into RAM, and gives it time on the CPU.

## What "the cloud" means

The cloud is other people's computers, in big data centers, that you rent over the internet. When you use [Google Drive](https://drive.google.com/), [Netflix](https://www.netflix.com/) or a company's online software, the work happens on servers somewhere else. Companies also rent servers from providers such as [Amazon Web Services](https://aws.amazon.com/), [Microsoft Azure](https://azure.microsoft.com/) and [Google Cloud](https://cloud.google.com/) instead of buying their own. That means a growing amount of security work is about cloud systems.

## What virtualization is

Virtualization lets one physical computer run several virtual computers, called virtual machines (VMs). Software called a hypervisor, such as [VirtualBox](https://www.virtualbox.org/), [VMware Workstation](https://www.vmware.com/products/desktop-hypervisor/workstation-and-fusion) or [Hyper-V](https://learn.microsoft.com/en-us/windows-server/virtualization/hyper-v/hyper-v-overview), divides up the real CPU, RAM and storage between them.

Why it matters to you:

- You can run Linux inside your Windows PC without changing anything on your real system.
- You can build a practice network of several machines on one laptop.
- If something breaks, you delete the VM and start again. That's what makes it safe to practice hacking.

Most computers need virtualization switched on in the BIOS or UEFI before VMs run well. We'll do that when we build the lab.

## Do you need a powerful computer?

No. To start, any computer works. Everything in the first part of this course, from these hardware basics to networking and the help desk tools, runs fine on an ordinary laptop.

A stronger computer helps later, when you build your lab. With plenty of RAM and a modern CPU, you can run several virtual machines at once on your own setup and try whatever you want more easily. Even so, don't buy anything just for this course.

If your computer is too weak for virtual machines, there's a cheaper option than upgrading. [TryHackMe](https://tryhackme.com/pricing) has the AttackBox, a ready-made hacking machine that runs on their servers and opens in your browser, so your own computer only needs a web browser. Free accounts get one hour a day on it. The Premium plan removes that limit, and it costs about as much as a streaming subscription. The price depends on your region and on whether you pay monthly or yearly, so check the pricing page. Once you're studying every week, it's money well spent.

## Connecting this to help desk

Many hardware tickets come down to one of these. It's a first guess, not a diagnosis, and the troubleshooting post later in the course goes deeper.

| Complaint | Likely suspect |
| --- | --- |
| Everything is slow | CPU, RAM or a nearly full disk |
| Slow to start up | Old HDD, too many startup programs |
| Random shutdowns | Overheating or the power supply |
| No picture | Cable, GPU or monitor |
| No internet on a cable | Network card or cable |

## Your exercise

You can do this on any Windows computer in five minutes. It's exactly what a help desk technician does first with a "my computer is slow" ticket.

1. Press `Ctrl + Shift + Esc` to open Task Manager. If you only see a small window, click **More details**.
2. Open the **Performance** tab.
3. Click **CPU** and write down the model name, the number of cores and the current usage.
4. Click **Memory** and write down the total RAM and how much is in use.
5. Click each **Disk** and note whether it says SSD or HDD, and how busy it is.
6. Now open ten browser tabs and a heavy program, and watch which numbers climb.
7. Using the table above, write one sentence: "If this computer felt slow right now, I'd suspect \_\_\_ because \_\_\_."

On Linux, run these in a terminal instead:

```bash
lscpu     # CPU model, number of cores and more
free -h   # total and used RAM, in human-readable units (-h)
lsblk     # lists the drives and their partitions
```

## Keep learning

- [**TryHackMe: Inside a Computer System**](https://tryhackme.com/room/insideacomputer)**.** The first room of the Computer Fundamentals module in TryHackMe's Pre Security path. It covers the same building blocks as this post, with questions to check yourself. The same module has rooms on [virtualization](https://tryhackme.com/room/virtualisationbasics) and [cloud computing](https://tryhackme.com/room/cloudcomputingfundamentals) if you want to go further.
- [**Professor Messer**](https://www.professormesser.com/)**.** Free video courses for the CompTIA A+ certification, the classic entry-level help desk certificate. The hardware videos go much deeper than this post.

## What's next

The next posts move on to the basics of networking: IP addresses, DNS and how devices find each other. That's the second pillar of IT, after the computer itself.
