跳转到主内容

How to determine the cause for a restart in Kali Linux

    • Press Ctrl + Alt + T to open the Terminal Interface.

    • Enter the command sudo mkdir /var/log/journal

    • Enter the command: sudo systemd-tmpfiles --create --prefix /var/log/journal 2>/dev/null

    • sudo systemctl -s SIGUSR1 kill systemd-journald

    • Once this command is run, you will need to restart your machine to get your current system logs.

    • See your logged boots from your journal with the following: journalctl --list-boots

    • Locate a specific reboot using this command: journalctl -b {num} -n

结论

Optionally you can use killall -USR1 systemd-journald rather than restarting your services. This way a user can keep all the logging from the current session.

另外一个人完成了本指南。

Jacob Mehnert

于10/18/21注册

26,736 声望

创作了43篇指南

团队

iFanatics iFanatics 的会员

Community

54 名成员

创作了154篇指南

0条评论

添加评论

浏览统计数据:

过去 24 小时: 2

过去 7 天: 3

过去 30 天: 11

总计 807