How to find the uptime

Now and then I need to find out for how long the server has been running. And it’s easy.

Linux
Just run the command uptime

Windows
Just run the command net statistics server