🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Linux for DevOps: all 10 questions

Quiz: Linux for DevOps · Question 3 of 10

Which command follows a service's logs live when it runs under systemd?

Which command follows a service's logs live when it runs under systemd?

  1. A.systemctl enable myapp
  2. B.journalctl -u myapp -f
  3. C.ps aux
  4. D.chmod +x myapp
Answer & explanation

Correct answer: journalctl -u myapp -f

journalctl reads systemd's journal; -u picks the unit and -f follows new lines.

Can you get the rest right without peeking?

Take the timed Quiz: Linux for DevOps quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →