There are plenty of reasons why you’d want to find out when your Linux computer shut down, restarted, or how long it’s been running. Most of the time this information is invaluable in debugging a problem that may have happened when no one was looking. Thankfully, Linux meticulously logs system events automatically on most distributions. Accessing that logged information from the command line is a breeze as well.