How To Check Uptime Of A Linux Server?

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 –

uptime

Where,

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¬† –

uptime -u

Display last start date and time of system

Use -s or --since option with the uptime command if you want to display the last start date and time of a system or server –

uptime -s

To know more about uptime command see its manual page by running following command –

man uptime

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 –

top

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

Conclusion

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.

Previous How Manually Partition A Disk During Installation of Ubuntu?
Next How to Master the Front-End Development

About author

You might also like

Linux Topics 0 Comments

How To Install And Configure Fish Shell In Ubuntu 20.04 LTS?

This post was last updated on August 1st, 2020 at 10:33 amIn Unix-like operating systems such as Linux, a shell is a program that interprets the command, executes, takes input(s),

Linux Topics 0 Comments

How To Create RAR Archive In Linux?

This post was last updated on August 1st, 2020 at 12:59 pmLike other archives, a RAR file is a data container that stores one or several files in compressed form.

Linux Topics 0 Comments

How to Find Exact Name of A Package by Using apt-cache in Linux?

This post was last updated on August 1st, 2020 at 10:53 pmIn a debian based package management system the apt-cache is a low-level tool to manipulate and obtain information about

0 Comments

No Comments Yet!

You can be first to comment this post!

Leave a Reply