New answers tagged


The classic UNIX command for this is uptime which knows how long the current kernel has been running and also gives the current load.


Edit: As @fpmurphy1 mentioned in a comment, there's no need for all the runlevel grepping below. A simple last reboot -n 10 will do. last -xF | grep -e 'lvl 2' -e 'lvl 5' | head -10 last is mainly used to check when and for how long a certain user was logged in (also see lastlog for that), but the log file it uses (/var/log/wtmp by default) also ...

Top 50 recent answers are included