• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Source Digit

Source Digit

Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • How To
  • Ubuntu
  • Instagram
  • Blogging
  • Android
  • WordPress
  • +More
    • Cloud Computing
    • Gadgets
    • Social Media
    • Technology
  • Write for Us
Home / How To / How To Check Last Reboot Date And Time In Linux Ubuntu

How To Check Last Reboot Date And Time In Linux Ubuntu

By Sourabh / March 3, 2024 Category: How To, Ubuntu

How to check reboot history in Linux. There are several commands to check last reboot time in Linux command line which are very helpful.

Using terminal you can easily check the last restart time in Linux Ubuntu server.

Who Command To Check The Last Reboot Time

‘who’ prints information about users who are currently logged on. When executed, ‘who’ prints the following information for each user currently logged on: login name, terminal line, login time, and remote hostname or X display.

who -b

who -b command print the date and time of last system boot.

You can also use the command who -q or who –count to print only the login names and the number of users logged on.

Last Command To Check The Last Reboot Time

last or lastb command is used to show a listing of last logged in users. The last command searches back through the /var/log/wtmp file and displays a list of all users logged in (and out) since that file was created.

How To Check Last 10 Reboot In Linux Ubuntu

You can use the last command to display last logged in users and system last reboot time and date:

last reboot | less

last reboot | head -1

If you want to finding systems’ last shutdown date and time, run the following command:

last -x|grep shutdown | head -1

You can also check the last reboot time with who command in Linux. To check the last reboot time, use the command who -b and it will show when the system was rebooted.

Note that the above command only shows us information about the current boot and not about previous boots.

If you want to check previous restart and reboot information, you can use dmesg command in Linux. To view the last reboot time, we can run dmesg | grep “systemd-” | head -n 10. This command will show the last 10 lines that contain the word “systemd”.

You can easily get information about the last system reboot.

Primary Sidebar

Latest Posts

Ubuntu 25.04 ‘Plucky Puffin’ Is Available To Download

How to Login as Root User in Linux Terminal

Install Firefox In Ubuntu Terminal Command Line

How To Check Kernel Installed Date In Linux Ubuntu

How To List All Kernel Modules That Are Loaded In Ubuntu

Enable Ubuntu Auto Login Without Password

Download Ubuntu 25.04 Official Default Wallpapers

How To Fix Initramfs Error In Ubuntu Command Line

How To Check All Available Kernel Version In Linux Ubuntu

3 Best Artificial Intelligence Domain Name Generators

© 2025 Source Digit • Linux, Ubuntu Tutorials & News, Technology, Gadgets & Gizmos

  • Home
  • About
  • Privacy Policy
  • Terms & Conditions
  • Contact Us
  • Sitemap