メインコンテンツにスキップ

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.

ある他の人がこのガイドを完成しました。

作成者

1人の作成者と共同作成されました。

Jacob Mehnert

メンバー登録日: 10/18/21

27,122 ポイント

43のガイドは作成済み

チーム

iFanatics iFanatics人のメンバー

Community

54 メンバー

154のガイドは作成済み

0 件のコメント

コメントを追加

統計データ:

過去 24時間: 0

過去 7 日: 12

過去 30 日: 23

今までの合計 825