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

16 Comments

  1. Good One..

    --Pathi

    ReplyDelete
  2. I was also searching for this problem when i was using the linux but havn't found any possible solution but you content helps me a lot about my issue.

    ReplyDelete
  3. Our brand is one of the best online polo t shirts pakistan at a cheap rate.

    ReplyDelete
  4. I was looking for this problem since very long but currently busy commercial law dissertation topics after this I will again look into this matter.

    ReplyDelete
  5. To determine who rebooted the Linux server, you can check the system logs using the command "last reboot" or review the "/var/log/wtmp" file for the most recent login entries.

    ReplyDelete
  6. Do you want Case Study Help Australia from Australian Experts? Don’t worries hire Case Study Help experts at pocket friendly price. Visit us now!

    ReplyDelete
  7. Your blog post addressing how to find out who rebooted a Linux server is a true gem for sysadmins. Just as Relax CBD products provide clarity to wellness, your insights bring clarity to server management. Thanks for sharing this valuable knowledge that empowers us to track server activity effectively. Your content is a valuable tool for those in the tech realm, helping us troubleshoot and maintain our systems efficiently. 🌐🔧 #LinuxServerManagement

    ReplyDelete
  8. Your guide on tracing Linux server reboots is incredibly informative. The mention of best teethers, though unrelated, adds a unique twist, showing the diverse range of topics that can benefit from such precise tracking. Well done!

    ReplyDelete
  9. These steps provide a clear path to uncover the mystery of a Linux server reboot. The "last" and "who" commands, along with checking user shell history, offer valuable insights into server activity.

    ReplyDelete
  10. This is a really well-written and interesting piece. I can't wait to get into the rest of the story. Fantastic. Black Friday Deals 2023

    ReplyDelete
  11. The blog provides valuable insights into tracking Linux server reboots. It offers a clear and concise guide, enhancing system administrators' skills. For comprehensive assistance on Linux systems and more, consider Assignment Help Pro Online.

    ReplyDelete
  12. The blog provides insightful guidance on identifying server reboots in Linux, offering a valuable resource for system administrators. For comprehensive assistance on server management and troubleshooting, consider Assignment Help Pro for expert support.

    ReplyDelete
  13. The blog provides valuable insights into tracking Linux server reboots, offering practical solutions. Assignment Help Pro appreciates the informative content, enhancing our understanding of server management. Great resource for Programming Assignment Help Online!

    ReplyDelete
  14. This blog provides a comprehensive guide on identifying the culprit behind Linux server reboots. The step-by-step approach is invaluable for system administrators. Additionally, I recommend seeking professional assistance like Assignment Help Pro for Programming Assignment Help Online.

    ReplyDelete
  15. This blog provides clear steps on identifying the initiator of a Linux server reboot, offering valuable insights for system administrators. Additionally, I highly recommend seeking Assignment Help Pro for Nursing Assignment Help Online.

    ReplyDelete