Guide on how to find out server uptime and login history

For those of you who use Linux OS, you can find out how long your server has been on. The easy way is to check the server uptime.

  1. Open terminal
  2. type in: uptime

    xxx@komp:~$ uptime
    08:40:14 up 6 days, 2:37, 1 user, load average: 0,67, 0,90, 1,03

From the results above, the information we can get is:

  • The server has been on for over 6 days.
  • The current position has only 1 user actively logged in.
  • Average Load Average in 1 minute: 0.67, 5 minutes: 0.90, 15 minutes: 1.03 Where these results are good (still below the average number of server cores).

 

In addition to uptime, you can also get more detailed information, namely knowing the server login history.

  1. Open terminal
  2. type in: last

    [root@wow ~]# last
    root pts/1 36.68.216.152 Mon Aug 14 08:43 still logged in
    root pts/1 61.5.36.146 Sun Aug 13 08:26 - 14:47 (06:21)
    root pts/1 36.68.216.152 Sun Aug 13 07:34 - 08:01 (00:26)
    root pts/1 36.68.216.152 Sat Aug 12 07:31 - 07:38 (00:07)
    root pts/1 36.68.216.152 Fri Aug 11 18:49 - 18:50 (00:00)
    root pts/1 36.68.216.152 Fri Aug 11 18:46 - 18:49 (00:03)
    root pts/1 36.68.217.251 Tue Aug 8 15:27 - 15:32 (00:04)
    root pts/1 36.68.217.251 Tue Aug 8 14:05 - 14:06 (00:00)
    root pts/1 36.68.217.251 Tue Aug 8 11:44 - 11:45 (00:00)
    root pts/1 36.68.217.251 Mon Aug 7 19:55 - 20:43 (00:48)

The information we can get is:

  • The last login was with user: root which was done from ip 36.68.216.152 and is still actively logged in until now.
  • login sebelumnya juga muncul pada tanggal 13 Agustus selama 6 jam 21 menit dengan ip 61.5.36.146

 

Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.