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 -fQuiz · +10 XP
Which command shows a service's logs?
Log in to save progress and earn XP.