How to check system uptime and reboot history
Answered
50
How can I see how long my server has been running and when it was last rebooted?
S
Asked by
security_pro
Bronze
•
259 rep
1 Answer
17
# Check uptime
uptime
# Output: 12:45:01 up 45 days, 3:21, 2 users
# Detailed uptime
uptime -p
# Output: up 45 days, 3 hours, 21 minutes
# Last reboot times
last reboot
# System boot time
who -b
# Using systemd
systemd-analyze time
S
Silver
•
222 rep
Your Answer
You need to be logged in to answer questions.
Log In to Answer