uptime Linux Command
uptime Linux Command
In this tutorial, we will learn about the uptime Linux Command with examples. This command will display the current time, how long the Linux machine has been up and running, the number of currently logged-in users, and the system load average at different times.
Command Format
$ uptime [flags]
To know more about the command, type the man command
$ man uptime
Examples
Launch the Terminal and type the following command.
For example,
$ uptime
$ uptime -p
-p Pretty format that displays only the uptime.
This command is a simple forensic command, we can know when the machine was booted or the time the machine last restarted.
Linux Commands Tutorial page: