Aller au contenu principal

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

Conclusion

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.

Une autre personne a terminé cette réparation.

Jacob Mehnert

Membre depuis le 10/18/21

27 051 Réputation

43 tutoriels rédigés

Équipe

iFanatics Membre de l'équipe iFanatics

Community

54 membres

154 tutoriels rédigés

0 commentaires

Ajouter un commentaire

Nombre de vues :

Dernières 24 heures : 1

7 derniers jours : 1

30 derniers jours : 13

Total : 813