Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»Linux Commands»How to Check System Reboot History in Linux

    How to Check System Reboot History in Linux

    RahulBy RahulFebruary 10, 20172 Mins ReadUpdated:February 1, 2020

    Linux/Unix systems keep the details of the previous reboot. You may also need to know when the system was rebooted last.

    Check Last Reboot History

    Mostly Linux/Unix systems provide the last command, which provides us the history of last logins and system reboots. These entries are keeps in the lastlog file. Run the last reboot command from the terminal, and you will get the details of the last reboots.

    last reboot 
    
    reboot   system boot  3.10.0-957.1.3.e Thu Nov 28 06:14 - 11:56 (65+05:41)
    reboot   system boot  3.10.0-957.1.3.e Tue Dec  4 03:51 - 06:14 (359+02:23)
    reboot   system boot  3.10.0-862.14.4. Fri Nov  2 06:13 - 03:51 (31+21:38)
    reboot   system boot  3.10.0-693.21.1. Sun Oct 21 06:13 - 06:13 (11+23:59)
    reboot   system boot  3.10.0-693.21.1. Wed Mar 21 04:16 - 06:13 (214+01:57)
    reboot   system boot  3.10.0-693.21.1. Tue Mar 20 15:39 - 04:16  (12:37)
    reboot   system boot  3.10.0-693.21.1. Tue Mar 20 15:37 - 15:38  (00:01)
    reboot   system boot  3.10.0-693.17.1. Tue Mar 20 12:32 - 15:38  (03:06)
    

    The above output shows that the system was last rebooted on Nov 28 at 06:14 AM.

    Check System Uptime

    Additionally, you can also use the uptime command to find the system uptime from last booted. Just open the terminal on your system and type uptime and hit enter.

    uptime 
     
    11:56:48 up 65 days,  5:42,  1 user,  load average: 0.09, 0.11, 0.18
    

    as per above output, the system is running from 65 days, 5 hours and 42 minutes.

    command last linux command reboot uptime
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp
    Previous ArticleHow To Install PHP (7.2, 7.1 & 5.6) on Debian 8 Jessie
    Next Article How to Install PostgreSQL 11 on Debian 8 (Jessie)

    Related Posts

    How to Search Recently Modified Files in Linux

    2 Mins Read

    Bash Printf Command

    Updated:December 23, 20212 Mins Read

    (Resolved) -bash: /bin/mv: Argument list too long

    Updated:January 13, 20222 Mins Read

    Tee Command in Linux with Examples

    4 Mins Read

    How to Scan Open Ports with Nmap

    5 Mins Read

    Handling filenames with spaces in Linux

    3 Mins Read

    2 Comments

    1. Daniel Kegley on October 4, 2019 12:55 pm

      look for roll over files /var/log/wtmp* and use last -f (filename).

      Reply
    2. Ghosh on July 30, 2019 7:10 pm

      this command isn’t working, I know that a server is restarted. but it is not showing up
      The output is

      wtmp begins Sun Jul 28 03:26:39 2019

      Reply

    Leave A Reply Cancel Reply

    Recent Posts
    • How to Enable / disable Firewall in Windows
    • How to Install JAVA on Ubuntu 22.04
    • Switching Display Manager in Ubuntu – GDM, LightDM & SDDM
    • Changing the Login Screen Background in Ubuntu 22.04 & 20.04
    • How To Install PHP (8.1, 7.4 or 5.6) on Ubuntu 22.04
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.