Terminal "Uptime" command result seems incorrect on my Mac mini after latest macOS Sonoma update.

Hi,


After I upgraded to Sonoma 14.4, the output from the Terminal "uptime" command seems incorrect. Attached is a terminal session in which I first ran the "date" command to get the current date and time; then the "uptime" command to get the system uptime; and finally the "last reboot" command; to list the date and time of the last system boot. Since the last boot time was at 21:49 on March 7th, and I executed these commands in the morning of March 10th, I would have expected that the "uptime" results would have reported a system uptime of about 2 1/2 days, but instead, it's reporting an uptime of 23 hours, 24 minutes. This reported uptime seems random, as it's not consistent with, for example, the number of full uptime days being missing from the "uptime" report. I've used the "uptime" command often in the past to monitor my system uptime, so I'm familiar with its use, but I've never seen anything like this before. I tried rebooting my system, but that didn't fix the problem. Am I doing something wrong here, or might this be some sort of bug?


Thanks!


Ken




[Re-Titled by Moderator]

Mac mini, OS X 10.11

Posted on Mar 10, 2024 10:04 PM

Reply
Question marked as Top-ranking reply

Posted on Mar 19, 2024 9:17 AM

Until this is fixed, I found that the following Terminal command to get the correct non-sleep-adjusted uptime is more convenient than the documented "Apple Menu Item > System Settings > General > About > System Report > Software":


system_profiler SPSoftwareDataType -detailLevel mini


The up-arrow key can be used to recall this command in a newly-opened Terminal window.


Ken



20 replies

Apr 19, 2024 9:12 PM in response to Kenneth Hjulstrom

I just upgrade to Sonoma (14.4.1) in the last month and when I went to check the 'uptime' using terminal, it constantly says 2 days, even through I'm sure it has been more than that. However, using the command in all caps "UPTIME", does return the proper information (about 12 days). So, semi-solution is to try the uptime command in all caps to get quick info until the lowercase command is fixed.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Terminal "Uptime" command result seems incorrect on my Mac mini after latest macOS Sonoma update.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.