Knowing How Long a Computer Has Been On With Uptime

If you want to know how long a computer with a Linux operating system has turned on, you can read the file / proc / uptime, or for easy you can use uptime commands. as an example

$ uptime

11:05:23 up 3 days, 23:18, 1 user, load average: 1.01, 1.11, 1.01
The output of the above uptime command gives us the following info

Current time (11:05:23)
How long the system has been on (3 days, 23:18)
Number of current user login (1 user)
Average system load (Load Averages) for last 1, 5 and 15 minutes
Maybe useful!