1
If you want to know the total uptime in minutes on a Linux-based system, then run the following command via the command line window:

awk  '{print $0/60;}' /proc/uptime


This command will give you in minutes for how long your system is running (uptime).

Here is another command that can help you monitor in real-time system uptime:

watch -n 30 uptime

Similar commands:


uptime
or
bc <<<  `uptime | sed -e 's/^.*up //' -e 's/[^0-9:].*//' | sed 's/:/*60+/g'`

For Debian-based systems, you can also use the uptimed utility to check system uptime. You can install it with this command:

sudo apt-get install uptimed

To check system uptime, run now this command:

uprecords

That's it!

Post a Comment

  1. tuptime is other utility and works as expected. Print total time between shutdowns

    ReplyDelete

 
Top