Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

/proc/uptime shows how long the system has been running since the last time I turned it on. Is there a way to determine the total amount of time the system has ever been on since I first installed it? For example, if I setup the system, run it for 20 minutes, turn it off, and turn it on again for 10 minutes, I'm looking for something that tells me the system has been run for 30 minutes total. Is there a command that does this? What about one for finding the date the system was installed?

share|improve this question

marked as duplicate by derobert, Renan, Mat, uther, jasonwryan Feb 22 '13 at 18:57

This question was marked as an exact duplicate of an existing question.

The potential duplicate is how to figure out when the system was installed. I don't think there is a way to find out what the cumulative uptime is; nothing records that by default. At least not going back that far. – derobert Feb 22 '13 at 17:17

Browse other questions tagged or ask your own question.