How to find who rebooted the Linux server ??


How to find who rebooted the Linux server ??


The below steps will help to find out who or when the server had rebooted last time. Once the server had panic reboot or some one rebooted system admin need to find out why/ who and when the server had rebooted.
Hope the below will help to find out the things.


1. last command

#last reboot

or 

#last |grep -i reboot

2. who –b

This command displays the time of last system boot and who logged on.


3.See these users shell history files in ~username/.bash_history for su or sudo commands.

4.boot.log

# cat /var/log/boot.log

5.messages

#more /var/log/messages 

  - and check the syslog started" time stamp

6. grep reboot /home/*/.bash_history

  >> Now you can get which user rebooted the server.





Post a Comment

3 Comments

  1. Good One..

    --Pathi

    ReplyDelete
  2. Contrary to popular belief, there isn’t a time of the day, the week or the month throughout which your possibilities of successful would increase, whereas playing in} on-line slot machines. However, there could be a time when it's more likely that you 카지노사이트 can hit that massive jackpot you have have} been having your eyes on for a while. Advantages of on-line slots are innumerable, one of them being the flexibility to enjoy additional worth from rewards and bonuses.

    ReplyDelete