Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

lslogins vs last

DBA092012Sep 30 2016 — edited Sep 30 2016

Hello everybody.

I have a question pertaining to the output of two commands which are lslogins and last.

Let's say i want to find out the time my OL 7.2 was shutdown

# lslogins shutdown

Username:                           shutdown

UID:                                6

Gecos field:                        shutdown

Home directory:                     /sbin

Shell:                              /sbin/shutdown

No login:                           no

Password is locked:                 no

Password not required:              no

Login by password disabled:         yes

Primary group:                      root

GID:                                0

Last login:                         Aug30/09:20

Last terminal:                      ~

Last hostname:                      3.10.0-327.22.2.el7.x86_64

Hushed:                             no

Password expiration warn interval:  7

Password changed:                   2015-Sep11

Maximum change time:                99999

Running processes:                  0

Last logs:

So i see that was Aug30/09:20

but when i use "last reboot" it also shows Aug30/09:20 but there is also Aug 30 12:28

[root@test-node1 ~]# last reboot

reboot   system boot  3.10.0-327.22.2. Tue Aug 30 12:28 - 11:35 (30+23:06)

reboot   system boot  3.10.0-327.22.2. Tue Aug 30 09:20 - 11:35 (31+02:14)

So i do't understand the meaning othat second figure.

Please explain.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 28 2016
Added on Sep 30 2016
9 comments
1,112 views