Ever wanted to find how long your Windows/Linux Box has been running?
For Windows
The Microsoft site suggests the following methods:
use the net statistics server command. Which can be re-written as net stats srv | Find "Statistics since" so we just get the info we are concerned about.
Or use a UpTime tool which does just that.
And my personal favorite method:
Again, extracting only the information relevant to us.systeminfo | Find "Up Time"
For Linux
For the Linux environment we have the Uptime command:
uptime gives a one line display of the following information. The current time, how long the system has been running, how many users are currently logged on, and the system load averages for the past 1, 5, and 15 minutes.