The uptime of any computer system or a server is defined as the time for which that machine stays up and running. It is considered as a very good metric for measuring the performance of a system. Linux provides us with a command to check the uptime of any computer system or a server very easily and in this article, we will show you how you can use the Uptime command on a Linux Mint 20 system.
General Syntax of the Uptime Command:
The syntax of the Uptime command is shown below:
$ uptime [option]
However, the “option” parameter with this command is optional and this command can function perfectly well even without using this parameter.
Method of Using the Uptime Command on Linux Mint 20:
To use the Uptime command on a Linux Mint 20 system, you can perform the following steps:
Step # 1: Checking if the Uptime Command is Installed or not:
The Uptime command is installed by default on a Linux Mint 20 system, however, you can still confirm this by running the command shown below:
$ uptime --version
The output of this command shown in the following image will indicate that the Uptime command exists on our system.
Step # 2: Looking for the Different Options Available with the Uptime Command:
Now, before actually using this command to find the uptime of our system, we can check out all the options that we can use with this command with the help of the command shown below:
$ uptime --help
All the options that can be used with this command are shown in the following image:
Step # 3: Using the Uptime Command to Find the System’s Uptime:
To check the total uptime of your system, you can use the command shown below:
The total uptime of our Linux Mint 20 system is shown in the following image:
Step # 4: Using the Uptime Command to Find the System’s Uptime in a Pretty Format:
Now, we can also display the total system uptime in a nice format by using the “-p” flag with the Uptime command in the manner stated below:
$ uptime –p
The uptime of our Linux Mint 20 system in a pretty format is shown in the following image:
Step # 5: Using the Uptime Command to Find the Date and Time since the System is up and Running:
Finally, we can also check the exact date and time since our system is up and running with the help of the command shown below:
$ uptime –s
The date and time since our Linux Mint 20 system is up and running is shown in the following image:
This article briefly talked about the purpose of the Uptime command in Linux Mint 20 followed by its general syntax. After that, we shared with you in detail how you can use this command effectively to check the uptime of your Linux Mint 20 system.
Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications including CCNA RS, SCP, and ACE. As an IT engineer and technical author, he writes for various websites.