Skip to content
EgyKode
01 · FoundationsLab 2 / 59
Guided lablinux

Linux Processes, Services & Logs

Find the process, read what it actually said, and restore a service that will not start.

Time
45 min
Level
Beginner
Objectives
4 objectives
Cost
Free

Where this fits in the platform

This lab adds

  • The ability to find why a service died

Before you start

You will need

  • Linux with systemd
  • sudo access

You do not need these already — the lab environment below provides them.

You will be able to

  • Locate a process by port, name or open file
  • Read a service's own logs rather than guessing from its status
  • Tell a crash apart from a configuration error

CostFree

— any Linux machine, VM or container.

Nothing to pay in the browser. Open the terminal runs this against a simulated cloud — the same API calls and the same commands, with no account and no bill. The figure above applies only if you build it in your own.

The scenario#

A service is down. systemctl status says failed, which tells you that it failed and nothing about why.

This lab builds the sequence that gets from that word to the cause.

Hands-on environment

Run this lab in a real terminal, free and in your browser. The environment is temporary and yours alone — break it as much as you like.

Open the terminal

Opens in Killercoda, in a new tab — keep this page open for the steps.

Run it on your own machine

Run this lab on your own machine. One command starts the environment, with everything the lab needs already installed:

Run these against the node1 container rather than the controller — it is the machine with systemd. From the controller: `ssh node1`.

You will need:

  • bash
git clone https://github.com/EgyKode/EgyKode-lab.git
cd EgyKode-lab
./egykode start
./egykode shell
ssh node1

You need Docker and Git installed. Everything else runs inside the environment. The first start downloads it and takes a few minutes; later starts are seconds.

Not sure what you already have? Run: npm run doctor — it checks and changes nothing.

Anything you tick here is your own record. EgyKode cannot see inside that terminal, so the success criteria stay self-assessed even when the environment checks your work for you.

What is running, and what holds the port

Step 1 of 5

Maintained by others, on Killercoda. Useful for extra repetition on one tool — it does not complete this lab or settle any criterion above.

Success criteria

0 of 4

The concept behind it

Ready to try it without help?Do the challenge

Next up

Lab 2 of 59 on the project path

Linux Security & SSH HardeningLock down SSH without locking yourself out, and know how to recover when you inevitably do.45 minBeginner

Previous: Linux Server Administration