Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

understanding linux last reboot command result

Tags:

linux

shell

When I ran the last reboot command on linux I receive the following result

reboot system boot 2.6.32-38-server Thu Jun 7 10:54 - 15:22 (04:27)

I need to know what the time 04:27 mean? did the reboot took 4 hours 27 minutes or what?

I tried searching for a description to the last command result but with no luck. Thanks

like image 890
Tamer Avatar asked Jul 21 '26 01:07

Tamer


2 Answers

If you use the -F flag, it becomes clear that it is showing system uptime across the interval shown. This is analogous to the use of last username which shows how long a login session lasted. Since reboot is a pseudo-user in the wtmp file, this is a reasonable way to parallel the output for real users.

like image 144
msw Avatar answered Jul 23 '26 15:07

msw


It's the difference in time between 10:54 and 15:22, roughly.

like image 25
rwst Avatar answered Jul 23 '26 14:07

rwst