Created
April 27, 2023 14:12
-
-
Save ShilGen/6dcf5462284aa4f105b7a5254bfbc869 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Запускать командой sudo ./getreboothistory.sh | tee reboothistory.txt | |
# На выходе reboothistory.txt файл с историей перезагрузок сервера reboothistory.txt | |
# sudo chmod +x getreboothistory.sh | |
uname -a | |
ip -4 addr | grep -oP '(?<=inet\s)\d+(\.\d+){3}' | |
echo "uptime" | |
uptime | |
echo "last reboot" | |
last reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment