Lazo Lab Sign up

Linux & the Command Line / Power tools

Lesson 22 of 30

Services with systemctl

Background programs like web servers run as services. systemctl starts, stops and checks them, and journalctl shows their logs.

Key points

  • systemctl status name
  • sudo systemctl restart name
  • journalctl -u name -f
sudo systemctl status nginx
sudo journalctl -u lazo-site -f
Watch a video on thisOpens YouTube search results for “Services with systemctl” in a new tab

Quiz · +10 XP

Which command shows a service's logs?

Log in to save progress and earn XP.