As an Ubuntu system Administrator, you might want to know since when the system is running. This is especially helpful if you want to troubleshoot power or scheduling related problems. Although there are many open-source applications that you can install and use for this purpose, the Ubuntu ‘uptime’ command is the simplest to use and gives accurate results.

So how do we get the exact boot time and system uptime on Ubuntu? This article explains the usage of the uptime command to achieve this task.

We have run the commands on an Ubuntu 18.04 LTS system.

You can open the Terminal application either through the system Dash or the Ctrl+Alt+T shortcut.

Checking Uptime and Boot Time

Run the following command in order to view the time duration since your Ubuntu system is powered on and running(uptime):

$ uptime -p

Get Ubuntu Uptime

The output displays the time, in hours and minutes and also if 2 or more users are logged in.

Run the following command in order to view the time at which your system was booted(boot time):

$ uptime -s

Get boot time

The output displays the date and time at which your system was booted.

Hope this article and the very simple uptime command helps you with all the troubleshooting related to your power and scheduling issues!

How to Get Boot Time and Uptime on Ubuntu