Best ways to check Linux Server uptime

Best ways to check Linux Server uptime

 

1. top command

[root@localhost ~]# top
top – 18:28:10 up 13:59, 6 users, load average: 0.08, 0.02, 0.01
Tasks: 179 total, 1 running, 178 sleeping, 0 stopped, 0 zombie
Cpu(s): 0.0%us, 0.2%sy, 0.0%ni, 99.8%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
Mem: 1012704k total, 911736k used, 100968k free, 9892k buffers
Swap: 2031608k total, 41696k used, 1989912k free, 287016k cachedPID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2639 user 20 0 488m 5880 4588 S 0.3 0.6 0:04.90 gnome-settings-
1 root 20 0 19348 1316 1072 S 0.0 0.1 0:01.91 init
2 root 20 0 0 0 0 S 0.0 0.0 0:00.02 kthreadd
3 root RT 0 0 0 0 S 0.0 0.0 0:00.66 migration/0
4 root 20 0 0 0 0 S 0.0 0.0 0:01.13 ksoftirqd/0
5 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
6 root RT 0 0 0 0 S 0.0 0.0 0:00.43 watchdog/0
7 root RT 0 0 0 0 S 0.0 0.0 0:00.68 migration/1
8 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/1
9 root 20 0 0 0 0 S 0.0 0.0 0:01.54 ksoftirqd/1
10 root RT 0 0 0 0 S 0.0 0.0 0:01.03 watchdog/1
11 root 20 0 0 0 0 S 0.0 0.0 0:05.03 events/0
12 root 20 0 0 0 0 S 0.0 0.0 0:50.09 events/1
13 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cgroup
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 khelper
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 netns
16 root 20 0 0 0 0 S 0.0 0.0 0:00.00 async/mgr
[root@localhost ~]#

2. w command

[root@localhost ~]# w
18:28:33 up 13:59, 6 users, load average: 0.05, 0.01, 0.00
USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT
user tty1 :0 Sun15 20:16m 11.65s 0.10s pam: gdm-passwo
user pts/0 :0.0 Sun15 23:45 0.16s 1.02s /usr/bin/gnome-
root pts/1 192.168.0.105 Sun23 9:49m 0.47s 0.47s -bash
root pts/2 192.168.0.105 16:11 1:50m 0.45s 0.45s -bash
user pts/3 :0.0 Sun18 23:45m 0.01s 0.01s /bin/bash
root pts/4 192.168.129.1 18:04 0.00s 0.03s 0.00s w
[root@localhost ~]#

3. uptime command

[root@localhost ~]# uptime
18:28:56 up 14:00, 6 users, load average: 0.04, 0.01, 0.00
[root@localhost ~]#

That’s all . Thanks for using IThelpblog.com

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>