你如何使用systemd的journalctl模式
我试图在journalctl上使用journalctl的模式匹配。 举个例子,我有很多标签为sshd的消息: $ journalctl -t sshd | wc -l 987 但如果我尝试使用模式匹配来find它们: $ journalctl -t 'ssh*' — No Entries — $ journalctl -t 'ssh.*' — No Entries — journalctl手册页说模式应该工作,但我无法find任何有关如何在systemd中使用/定义模式。 $ man journalctl …. -t, –identifier=SYSLOG_IDENTIFIER|PATTERN Show messages for the specified syslog identifier SYSLOG_IDENTIFIER, or for any of the messages with a "SYSLOG_IDENTIFIER" matched by PATTERN. 我正在运行ArchLinux: […]