The uptime is a command line tool that allows to determine how long the system has been running.
By default, uptime
command is already installed on Raspberry Pi OS. We can check version as follows:
uptime --version
Execute the uptime
command without any options in order to check the uptime of Raspberry Pi:
uptime
The output will be similar to this:
05:19:48 up 1:25, 1 user, load average: 0.20, 0.05, 0.01
05:19:48
- the current time.up 1:25
- how long the Raspberry Pi has been running.1 user
- the number of currently logged on users.load average: 0.20, 0.05, 0.01
- the average system load for the past 1, 5, and 15 minutes.
We can use -p
option to print the uptime in human-readable format:
uptime -p
Example of the output:
up 1 hour, 25 minutes
We can also use -s
option to get the date and time since the Raspberry Pi started to run.
uptime -s
Example of the output:
2021-03-16 03:54:47
Leave a Comment
Cancel reply