Security
A systemd-based server rebooted overnight, and an administrator needs to review only the messages from the sshd service that were logged at error severity or higher since the current boot. Which command does this?
Show the answer
Correct answerA. journalctl -u sshd -p err -b
-u limits output to the sshd unit, -p err shows error and more severe entries, and -b restricts it to the current boot. -k shows only kernel messages, so it would drop the sshd entries, while -x just adds explanatory text across all stored boots.