It’s really easy to figure out how long a system has been up and running on solaris. Absurdly easy.


The uptime command shows how long a system has been running.


# uptime
 11:57pm up 44 mins(s), 2 users, load average: 0.08, 0.13, 0.14

who -b

The who -b command will tell you exactly when the system was last started up, as opposed to telling you how long it’s been up. Saves you some math.


# uptime -b
     system boot  Nov 30 23:13

Lowell Heddings Lowell Heddings
Lowell is the founder and CEO of How-To Geek. He’s been running the show since creating the site back in 2006. Over the last decade, Lowell has personally written more than 1000 articles which have been viewed by over 250 million people. Prior to starting How-To Geek, Lowell spent 15 years working in IT doing consulting, cybersecurity, database management, and programming work.
Read Full Bio »

The above article may contain affiliate links, which help support How-To Geek.