{"id":5316,"date":"2014-08-17T01:16:47","date_gmt":"2014-08-16T17:16:47","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=5316"},"modified":"2023-04-28T09:48:17","modified_gmt":"2023-04-28T09:48:17","slug":"how-to-check-linux-system-reboot-date-and-time","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-check-linux-system-reboot-date-and-time\/","title":{"rendered":"How to Check Linux System Reboot Date and Time"},"content":{"rendered":"<p>As a Linux system administrator, it is essential to know when your system was last rebooted. This information can be useful for troubleshooting and maintenance purposes.<\/p>\n<p>In this tutorial, we will go through the steps to check the Linux system reboot date and time using the &#8220;who -b&#8221;, &#8220;last reboot&#8221;, and &#8220;uptime&#8221; commands.<\/p>\n<h2>Step 1: Check System Reboot Date and Time Using &#8220;who -b&#8221;<\/h2>\n<p>The &#8220;who -b&#8221; command displays the system&#8217;s last boot time. To use this command, open a terminal and type the following command:<\/p>\n<pre>\r\nwho -b\r\n<\/pre>\n<p>The output will show the date and time when the system was last booted.<\/p>\n<pre>\r\n[root@server ~]# who -b\r\n         system boot  2014-08-16 09:34\r\n<\/pre>\n<h2>Step 2: Check System Reboot Date and Time Using &#8220;last reboot&#8221;<\/h2>\n<p>The &#8220;last reboot&#8221; command shows the history of system reboots. To use this command, open a terminal and type the following command:<\/p>\n<pre>\r\nlast reboot\r\n<\/pre>\n<p>The output will display the reboot history, including the date and time of the last system reboot.<\/p>\n<pre>\r\n[root@server ~]# last reboot\r\nreboot   system boot  2.6.32-431.el6.x Sat Aug 16 09:34 - 01:11  (15:36)\r\nreboot   system boot  2.6.32-431.el6.x Tue Aug 12 19:39 - 00:13  (04:33)\r\nreboot   system boot  2.6.32-431.el6.x Mon Aug 11 23:08 - 23:59  (00:50)\r\nreboot   system boot  2.6.32-431.el6.x Tue Aug  5 11:47 - 05:41 (5+17:54)\r\nreboot   system boot  2.6.32-431.el6.x Tue Aug  5 09:03 - 11:18  (02:15)\r\nreboot   system boot  2.6.32-431.el6.x Tue Aug  5 08:58 - 09:03  (00:04)\r\nreboot   system boot  2.6.32-431.el6.x Fri Jul 18 00:47 - 00:51  (00:04)\r\nreboot   system boot  2.6.32-431.el6.x Sun Dec  8 11:22 - 11:23  (00:01)\r\nreboot   system boot  2.6.32-431.el6.x Sun Dec  8 10:28 - 10:30  (00:01)\r\nreboot   system boot  2.6.32-431.el6.x Sat Dec  7 21:54 - 22:40  (00:46)\r\nreboot   system boot  2.6.32-431.el6.x Sat Dec  7 19:46 - 21:54  (02:08)\r\n\r\nwtmp begins Sat Dec  7 19:46:12 2013\r\n<\/pre>\n<h2>Step 3: Check System Uptime<\/h2>\n<p>The &#8220;uptime&#8221; command shows how long the system has been running since the last reboot. To use this command, open a terminal and type the following command:<\/p>\n<pre>\r\nuptime\r\n<\/pre>\n<p>The output will display the system&#8217;s uptime in days, hours, minutes, and seconds.<\/p>\n<pre>\r\n[root@server ~]# uptime\r\n 01:13:34 up 15:38,  1 user,  load average: 0.04, 0.08, 0.04\r\n<\/pre>\n<h2>Commands Mentioned:<\/h2>\n<ul>\n<li><span class=\"fw-bold\">who -b<\/span> &#8211; a command that displays the system&#8217;s last boot time.<\/li>\n<li><span class=\"fw-bold\">last reboot<\/span> &#8211; a command that shows the history of system reboots.<\/li>\n<li><span class=\"fw-bold\">uptime<\/span> &#8211; a command that shows how long the system has been running since the last reboot.<\/li>\n<\/ul>\n<h2>Conclusion:<\/h2>\n<p>In this guide, we have outlined the steps to check the Linux system reboot date and time using the &#8220;who -b&#8221;, &#8220;last reboot&#8221;, and &#8220;uptime&#8221; commands. By using these commands, you can easily obtain the necessary information about system reboots for maintenance and troubleshooting purposes. If you have any questions or suggestions, feel free to comment below.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As a Linux system administrator, it is essential to know when your system was last rebooted. This information can be useful for troubleshooting and maintenance purposes. In this tutorial, we&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[1],"tags":[1536],"class_list":["post-5316","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5316","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=5316"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/5316\/revisions"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=5316"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=5316"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=5316"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}