快捷搜索:   nginx

Fedora Linux下查看开机时间和进程情况

涉及到2个很简单的命令:一个是top (查看进程) 一个就是uptime(查看开机到现在有多久)
 
  具体演示:
 
  查看开机时间:
 
   [root@web ~]# uptime 13:44:25 up 16 days, 3:12, 1 user, load average: 0.00, 0.00, 0.00


  查看进程:
 
   [root@web ~]# top top - 13:45:14 up 16 days, 3:12, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 76 total, 1 running, 75 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.3%sy, 0.0%ni, 99.7%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 254236k total, 167976k used, 86260k free, 396k buffers Swap: 524280k total, 21620k used, 502660k free, 44216k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 25303 root 20 0 2272 972 788 R 0.3 0.4 0:00.03 top 1 root 20 0 2112 648 564 S 0.0 0.3 0:02.03 init 2 root 15 -5 0 0 0 S 0.0 0.0 0:00.01 kthreadd 3 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0 4 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 5 root RT -5 0 0 0 S 0.0 0.0 0:00.00 watchdog/0 6 root 15 -5 0 0 0 S 0.0 0.0 0:00.18 events/0 7 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khelper 58 root 15 -5 0 0 0 S 0.0 0.0 0:00.33 kblockd/0 61 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 62 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kacpi_notify 142 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 144 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd 149 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 khubd 152 root 15 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod 180 root 20 0 0 0 0 S 0.0 0.0 0:01.35 pdflush 181 root 20 0 0 0 0 S 0.0 0.0 0:00.95 pdflush
 
  这都是没有加入参数的情况下显示的。
 

顶(0)
踩(0)

您可能还会对下面的文章感兴趣:

最新评论