Можно ли узнать, сколько времени MacBook был включен с момента его производства?
Есть команда терминалаac
AC(8) BSD System Manager's Manual AC(8) NAME ac -- display connect-time accounting SYNOPSIS ac [-d] [-p] [-w file] [users ...] DESCRIPTION A record of individual login and logout times are written to the system log by login(8) and launchd(8), respectively. The program ac examines these records and writes the accumulated connect time (in decimal hours) for all logins to the standard output. Options available: -d Display the connect times in 24 hour chunks. -p Display individual user totals. -w file Read raw connect time data from file, instead of the system log. > users ... Display totals for the given individuals only. If no arguments are given, ac displays the total amount of login time for all active accounts on the system.
Это выглядит примерно правильно, когда я набираю его на своей новой машине, но мой 9-летний Mac Pro дает ту же цифру для своего текущего пользователя, что и общее количество часов, что означает, что он потерял след моей старой учетной записи [все еще активен там, но редко используется сейчас], который действует с 2008 года. Он просто дает 0 часов.
Он не сможет учесть часы, в течение которых машина могла работать без входа в систему.
МммХм