Answer the question
In order to leave comments, you need to log in
How to find out the server uptime for a certain period?
There is a home server on Ubuntu Server that does not work around the clock. Is there a way to find out the time of its work, for example in a month, based on the logs or in some other way?
Answer the question
In order to leave comments, you need to log in
In my opinion, the easiest way is to use the uptimed utility. Present at least in debian.
According to the logs, the list of downloads (with the beginning and end of work):journalctl --list-boots
Enter the uptime command at the command line and press Enter
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question