linux,

Check last reboot time in Linux

Mar 27, 2022 · 1 min read · Post a comment
Check last reboot time in Linux

In today’s post we are going to find out the last reboot time in Linux from the CLI.

Prerequisites

  • Shell environment

Solution

Option 1. The last reboot command.

last reboot -1

Example output:

reboot   system boot  4.15.0-171-gener Fri Mar 11 02:29   still running

wtmp begins Tue Mar  1 07:27:31 2022

Option 2. The who command.

who -b

Example output:

system boot  2022-03-11 02:29

Conclusion

If you can think of any other alternative command, please do let me know in the comment section below.
On a side note, follow our official channel on Telegram.