Skip to content

Exercise · 5 steps · ~15 minutes + setup

Find the parts of your Linux system

Start the Ubuntu lab from the video as a virtual machine (VM) and as a container, and find each one’s kernel, distribution and first process.

The exercise for my video Linux Explained: What a Linux System Is Made Of

You need a Mac, a Windows 11 PC or an Ubuntu 26.04 computer with virtualization turned on, 8 GB of memory, about 10 GB of free disk space and two tools, set up below. In the video, I build a Linux system part by part. Here, you look at the parts of two finished ones.

The three checks in the video

Kernel

uname -r prints its release

Distribution

/etc/os-release, the line PRETTY_NAME

First process

/proc/1/comm, the name of process 1

Before you start

Install Multipass, Canonical’s tool that makes Ubuntu virtual machines, with its installer for macOS. Then install Docker Desktop.

Docker Desktop is free for personal use, education and small businesses. Larger companies and government agencies need a paid subscription.

On Windows, the lab runs in WSL 2 instead of Multipass. Press Win, type PowerShell and click Run as administrator. If you don’t have WSL yet, install it and restart your PC:

wsl --install --no-distribution

If you have it already, run wsl --update. Then install Docker Desktop.

Docker Desktop is free for personal use, education and small businesses. Larger companies and government agencies need a paid subscription.

Install Multipass, Canonical’s tool that makes Ubuntu virtual machines:

sudo snap install multipass

Install Docker Engine with Docker’s own steps: remove the old packages it lists, and install from its apt repository. Then add yourself to the docker group, so you can run docker without sudo:

sudo usermod -aG docker $USER

Log out and back in for it to work. Docker warns: “The docker group grants root-level privileges to the user.”

1. Start linux-lab

Open Terminal (press Cmd+Space, type Terminal and press Return) and run:

multipass launch 26.04 --name linux-lab
multipass shell linux-lab

The first launch downloads Ubuntu 26.04, so it takes a few minutes. Then your prompt changes to ubuntu@linux-lab:~$. If multipass shell can’t connect at first, wait a few seconds and run it again.

Open PowerShell (press Win, type PowerShell and press Enter) and run:

wsl --install Ubuntu-26.04 --name linux-lab

It downloads Ubuntu 26.04 and starts it as linux-lab, separate from any Ubuntu you already have. Pick a username and a password for the lab. Nothing shows while you type the password. That’s normal. Next time, wsl -d linux-lab opens it.

Open a terminal (Ctrl+Alt+T) and run:

multipass launch 26.04 --name linux-lab
multipass shell linux-lab

The first launch downloads Ubuntu 26.04, so it takes a few minutes. Then your prompt changes to ubuntu@linux-lab:~$. If multipass shell can’t connect at first, wait a few seconds and run it again.

2. Run the three checks

In linux-lab, run:

uname -r
cat /etc/os-release
cat /proc/1/comm

In the second answer, PRETTY_NAME is the distribution. Write down the three answers, then type exit to go back to your computer.

3. Start the container

On a Mac or Windows, start Docker Desktop first. Then run:

docker run -it --rm ubuntu:26.04

Your prompt changes to something like root@43cab0add2a1:/#. You’re in the container. Run the same three checks, then type exit.

4. Check your own computer

Run the same three checks on your Mac:

uname -r
cat /etc/os-release
cat /proc/1/comm

The first gives the release of Apple’s own kernel, 27.0.0 on my Mac, and the other two find no such file. A Mac isn’t Linux.

Windows has no uname, so ask PowerShell for the Windows version:

cmd /c ver

Your PC runs Windows’ own kernel, not Linux.

Run the same three checks on your computer:

uname -r
cat /etc/os-release
cat /proc/1/comm

All three answer, since your computer runs Ubuntu too. The VM may show the same kernel release as your computer, but it’s the VM’s own copy, started by its own boot. The prompt tells you where you are.

5. Delete linux-lab and start again

multipass delete --purge linux-lab
multipass launch 26.04 --name linux-lab

--purge deletes the VM for good. The new one takes about 40 seconds on my Mac, since Ubuntu is already downloaded.

wsl --unregister linux-lab
wsl --install Ubuntu-26.04 --name linux-lab

--unregister deletes linux-lab and everything in it, for good. Type the name exactly, and never unregister your own distributions or docker-desktop. Then pick a username and a password again.

multipass delete --purge linux-lab
multipass launch 26.04 --name linux-lab

--purge deletes the VM for good. The new one starts faster, since Ubuntu is already downloaded.

The container needs nothing: --rm deleted it when you typed exit.

What you found

The VM The container
Kernel 7.0.0-38-generic 7.0.14-linuxkit
Distribution Ubuntu 26.04.1 LTS Ubuntu 26.04.1 LTS
First process systemd bash

The distribution reads Ubuntu every time, but the kernel isn’t always Ubuntu’s. The VM booted Ubuntu’s own kernel, ending in -generic, and started systemd. The container brought no kernel: it started Bash on Docker Desktop’s kernel, which ends in -linuxkit and was already running. So it says Ubuntu, but reports someone else’s kernel.

These are from my Mac, so your versions may be different. On Windows, linux-lab and the container both run on Microsoft’s kernel, since Docker Desktop runs in WSL 2 too. On Ubuntu, the container runs on your computer’s own kernel.

Next in the roadmap: Linux commands. That lesson opens the shell in this lab, so keep linux-lab. On a Mac or Ubuntu, multipass stop linux-lab stops it until then.

Steps 1 to 5 checked on November 6, 2026, on macOS 27.0.1 (Apple silicon), with Multipass 1.16.4, Docker Desktop 4.93.0 and the ubuntu:26.04 image, build 20261024.1. On Ubuntu, step 3 checked the same day with Docker Engine 29.9.3, in an Ubuntu 26.04.1 VM. The Windows steps, and Multipass on an Ubuntu computer, follow Microsoft’s, Canonical’s and Docker’s docs, and I haven’t run them yet.

Newsletter · Free

Get new exercises by email

Every new video comes with an exercise like this one.

Loading signup form…

Free. Unsubscribe anytime. Form not loading? Subscribe here.