0 of 16 lessons done
Course classroom
CompTIA Linux+ XK0-006

Day 1 of 15

Day 1 · The terminal and the Linux filesystem

Your first day as a Linux administrator: the terminal, how to get help and the full map of the system.

⏱ 2 hours 🧪 15 terminal tasks ✅ 13 review questions ● Free trial: part of this chapter

Stage 1 of 3

Learn

Read calmly, one part at a time. Wherever there is a sample command, the “Type it for me” button types it into the terminal, below.

Your first day at Nube Volcán

Nube Volcán S.A. (a fictional company) sells cloud services to businesses in Costa Rica. Today is your first day as their Linux system administrator. Mariela, the head of infrastructure, has given you access to a server and left you a message: "Welcome aboard. Before you touch anything, I want you to get to know this server from the inside. Your instructions are in your home folder."

For the next 15 days you'll get assignments like this one. By the end, you'll be able to do everything the CompTIA Linux+ exam asks for, because you'll have already done it.

What Linux is, in three pieces

When people say "Linux," they almost always mean three things working together:

  • The kernel: the program that talks to the hardware. It hands out memory, CPU time and disk access to every other program. Strictly speaking, the kernel is "Linux."
  • The distribution: the kernel plus everything else (programs, an installer, a package manager). Ubuntu, Debian, Red Hat Enterprise Linux (RHEL), Rocky Linux, Fedora and SUSE are all distributions. They come in families: Debian-based distributions use .deb packages and apt; Red Hat-based ones use .rpm and dnf.
  • The shell: the program that reads what you type and runs it. The most common one is bash. Others include zsh, sh and fish.

On the exam. Linux+ isn't tied to one distribution: the same exam can ask you about apt and about dnf. This course teaches you both families.

The graphical stack: X11, Wayland and the managers

A server almost never has a desktop: you manage it from the terminal, and every graphical program you don't install is memory you save and one less door for an attacker. Linux workstations do use one, though, and the exam asks how it's put together. There are four pieces, from the bottom up:

PieceWhat it doesExamples
X server (X Window System, X11)The classic Unix graphics system: it draws on the screen and takes input from the keyboard and mouse. It was designed for the network: a program can run on one machine and display on another machine's screen (that's where SSH X11 forwarding, ssh -X, comes from). The DISPLAY variable, for example :0, tells each program which screen to draw on.Xorg
WaylandThe modern replacement for X11. It's simpler and more secure: one application can't read another application's screen or keystrokes. Older applications built for X11 keep working on top of XWayland.The default session on Fedora, RHEL 9 and Ubuntu
Display managerThe graphical login screen. It asks for your username and password, starts your session and lets you choose between a Wayland session and an X11 (Xorg) one.GDM (GNOME), SDDM (KDE), LightDM
Window managerDraws each window's borders and buttons, and decides where windows go, how they move and which one is in front. Under Wayland, the compositor does this job.Mutter, KWin, Openbox, i3

A desktop environment (GNOME, KDE Plasma, Xfce) bundles all of the above with panels, menus, applications and settings. To find out which kind of session you're in, run echo $XDG_SESSION_TYPE: it answers x11, wayland or, in a text or SSH session, tty. If a server came with a desktop it doesn't need, you stop loading it with sudo systemctl set-default multi-user.target, which you'll see on day 8.

On the exam. "Which component displays the graphical login screen?" The display manager (GDM, SDDM, LightDM). "An old screen-capture or remote-desktop tool stopped working after an upgrade": the session switched to Wayland, which doesn't let one program read another's screen; pick an Xorg session in the display manager. And don't mix up the terms: the X server runs on the machine that has the screen, even when the program runs somewhere else.

Done reading: let’s practice ↓

Keep scrolling: the lab is next

Stage 2 of 3

Practice

Now it’s your turn, one task at a time. The task is on top; the terminal are below. When you complete it, it checks itself and the next one appears. Your progress is saved.

Free trial: 3 of the 15 terminal tasks in this chapter. With the course you do them all, plus the ones in every other chapter.

Keep scrolling: the review questions come after the lab

Stage 3 of 3

Check

A few short questions to check what you learned. We tell you right away whether you got it right and why.

Free trial: 3 of the 13 review questions in this chapter.

This is the end of the trial

Now you know how this course works: the reading, the terminal that check every task by themselves, and review questions with explanations.

With the course you get this full chapter (15 terminal tasks and 13 questions), 14 more days, 4 practice exams and your certificate of completion.

Full course: $99 (regular price $149) · one payment · 12 months of access

Already bought it? Sign in to your account and continue with the full chapter. Rather talk to us? Message us on WhatsApp.

Go to the course classroom

The companies, people and data in the course stories are fictional; any resemblance to reality is coincidental.