How to check last uptime in Linux Ubuntu and how to check server uptime in Linux? On Linux users can check my system uptime; how long has system been running. It will show the amount of time Linux has been up and running.
Check Linux Server Uptime
Use the uptime command with -p argument to show only the running time of the system:
Check Linux Server Starting Time
Use the uptime command with option -s to display the date/time since when the system has been running.
You can also use the last command to find the system reboot time/history. Run the following command to find when the system was last rebooted.
The ‘uptime’ command is used to display the current time, the system’s uptime, the number of logged-in users and the current load average.
Whereas the last command searches back through the /var/log/wtmp file (or the file designated by the -f option) and displays a list of all users logged in (and out) since that file was created.