Mission 336

Unit file reading

Read a service definition before interpreting its runtime state.

Server operations
8 minutes Admin Lesson 336 of 360
systemctlgrep
Lesson 336 of 360 0/360 lessons 0/17 missions Server operations · 8 minutes
0%
Continue View profile
Ops lab terminal Training lab
New learnerrank 0XP 0%complete
learner@clairos:/home/learner $ Unix ops lab: type a command, press Enter
Instructions 8 minutes

Click any instruction for the command details, the why, and the common mistake to avoid.

Read the nginx unit

Run systemctl cat nginx.

systemctl cat nginx
Find the start command

Run grep ExecStart /etc/systemd/system/nginx.service.

grep ExecStart /etc/systemd/system/nginx.service
Compare the runtime state

Run systemctl status nginx.

systemctl status nginx
Lesson support

What to notice while you play.

Objective

Build repeatable confidence with connecting a systemd unit definition to service behavior.

Hint

Start with systemctl cat nginx, inspect the result, then continue in order.

Why it matters

Connecting a systemd unit definition to service behavior helps operators explain what they know before they change anything.

Common mistakes
  • Skipping the output that proves connecting a systemd unit definition to service behavior.
  • Changing several things before recording a baseline.
Reference

Commands in this lesson.

grep [-i] <text> <file>

Find literal text inside a file.

systemctl status <service>

Inspect simulated service status.