- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Core Tech
Process and Service Management with systemd in Ubuntu Linux
In this guided lab, you will investigate running processes and resource usage with `ps`, `top`, and `htop`; manage system services with `systemctl` and `journalctl`; and author your own `systemd` unit file to run a custom application as a first-class service that starts at boot and recovers on failure. You will finish with the practical skills needed to keep an Ubuntu workload healthy, responsive, and production-ready.
Lab Info
Table of Contents
-
Challenge
Monitor and Control Running Linux Processes
To start things off, you will inspect the Linux process table using tools like
ps,top, andhtopto identify the processes consuming the most resources. You will practice sending signals withkillandpkill, and compare exact-name signaling withkillallagainst pattern-based signaling withpkill. You will adjust CPU scheduling priority usingniceandrenice, and manage foreground and background jobs in the shell with&,jobs,fg, andbg. -
Challenge
Manage an Existing Service with systemd and systemctl
Next, you will manage an existing
nginxservice usingsystemdandsystemctl. You will check the service status, review recent logs withjournalctl, and perform common service actions such as starting, stopping, restarting, reloading, enabling, and disabling the service. You will also explore loaded units, failed units, the current default target, and the system boot sequence using tools likesystemd-analyzeandsystemctl list-dependencies. -
Challenge
Create and Deploy a Custom systemd Unit File
To finish things off, you will create and deploy a custom
.serviceunit file forinventory-api. You will define the required[Unit],[Service], and[Install]sections, reloadsystemd, enable and start the service, and verify that it runs successfully. You will also test auto-recovery by stopping the process, confirm thatsystemdrestarts it, create a safe override withsystemctl edit, and inspect boot performance withsystemd-analyze blameandsystemd-analyze critical-chain.
About the author
Real skill practice before real-world application
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Learn by doing
Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.
Follow your guide
All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.
Turn time into mastery
On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.