Logging · Question 7 of 12

How do you show only the messages of a specific unit, such as sshd.service, with journalctl?

1 answer is correct. Easy Created with AI

Show answer

Answer

  • D journalctl -u sshd.service

Explanation

-u filters by unit, -k shows kernel messages, -p filters by priority and -b by system boot.

Certifications & exams

Which exam comes next?

You can already practise for 51 exams, and 16 are up for a vote. See all certifications with their official information, cast your vote or suggest your exam.

See all certifications