How To Check Uptime Of A Linux Server?
This post was last updated on August 1st, 2020 at 12:15 pm
System uptime is how long a system has been up and running. Linux operating system provides various commands such as uptime and top to check the uptime of a system. System uptime information is stored in
/proc/uptime file. This information can be displayed using the uptime command.
In this article, we will discuss to check the uptime of a server by using uptime and top command. You can use these commands on any Linux system.
How to display the system uptime using uptime command
To display the system uptime using uptime command open your terminal by pressing
ctrl+alt+t and then run the following command –
13:19:25 is the current time
The system is up since last 1 hour 40 minutes
1 user is currently login on this server
load average for the last 1, 5 and 15 minutes is 0.06, 0.03 and 0.01
Display uptime in pretty format
To display uptime in pretty format use
-u option with uptime command –
Display last start date and time of system
--since option with the uptime command if you want to display the last start date and time of a system or server –
To know more about uptime command see its manual page by running following command –
Find system uptime using the top command
In Linux top command is used to monitor processes. It displays a dynamic and realtime view of the processes that are running in a system. We can use this command to check the uptime of a system.
Now use the following command to display system uptime by using top command –
Now see in the first line of the output of the top command –
14:47:23 is the current time
The system is up for the last 3 hours and 8 minutes
1 User is active on this server
The average load of last 1, 5 and 15 minutes is 0.02, 0.02 and 0.00
By following this article now you can find how long your system has been up and running. If you have something to say on this topic then write in the comments below.
You might also like
This post was last updated on August 3rd, 2020 at 03:04 pmContents1 Software Package2 Package Manager3 Advanced Packaging Tools (apt)3.1 apt-get Commands-3.2 apt-cache Commands-3.3 Difference between apt and apt-get commands-4
The cockpit is a web console that makes it easy to administer the GNU/Linux server. It has a user-friendly web-based interface that enables you to carry out different system admin
This post was last updated on August 29th, 2020 at 08:31 pmIn Linux or Unix, you can perform almost any task by using a terminal. You need to have superuser