Ir para o conteúdo 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

Conclusão

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.

Uma outra pessoa concluiu este guia.

Jacob Mehnert

Membro desde: 10/18/21

27.297 Reputação

Autoria de 43 guias

Equipe

iFanatics Membro de iFanatics

Community

Membros da 54

Autoria de 156 guias

0 comentários

Adicione um comentário

Exibir estatísticas:

Últimas 24 horas: 1

Últimos 7 dias: 4

Últimos 30 dias: 29

Duração total: 834