Перейти к основному содержанию

Введение

This guide will show you how to determine why exactly your Mac shut down or restarted using macOS's built-in logging.

  1. Open Terminal.app
    • Open Terminal.app

  2. PC Laptop Batteries

    An easy fix for a big power boost.

    Купить сейчас

    PC Laptop Batteries

    An easy fix for a big power boost.

    Купить сейчас
  3. Copy and paste the following command in your Terminal window:
    • Copy and paste the following command in your Terminal window:

    • log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h

    • The "24h" portion of the command can be changed to any number of hours, depending on how far back you need to see.

  4. The previous shutdown causes in the timeframe you selected will appear as a list.
    • The previous shutdown causes in the timeframe you selected will appear as a list.

    • Common shutdown causes include 5 which indicates a normal shutdown, 3 which indicates a hard shutdown (i.e. holding the power button), and 0 which indicates the power was disconnected.

    • A full list of shutdown causes can be found here: Shutdown Causes.

Заключение

Done! You should be able to use these codes to further troubleshoot random shutdowns or other strange events.

Hit the button below if this guide helped solve your issue :)

One other person completed this guide.

Прикрепленные документы

Jonah Aragon

Участник с: 05.08.2018

2 397 Репутация

Автор 4 руководств

Команда

Experimax Coon Rapids Member of Experimax Coon Rapids

Business

2 членов

Автор 4 руководств

Комментариев: 0

Добавить комментарий

Просмотр статистики:

За 24 часа: 20

За 7 дней: 111

За 30 дней: 444

За всё время: 1,366