用到二个linux命令:一个是top (查看进程) 一个就是uptime(查看开机到现在有多久)
1,查看开机时间: [root@ahlinux~]# uptime 08:30:08 up 70 days, 9:37, 1 user, load average: 0.00, 0.00, 0.00
2,查看进程: [root@ahlinux~]# top top – 08:35:35 up 70 days, 9:39, 1 user, load average: 0.00, 0.00, 0.00 Tasks: 103 total, 2 running, 101 sleeping, 0 stopped, 0 zombie Cpu(s): 0.0%us, 0.0%sy, 0.0%ni,100.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st Mem: 514896k total, 484812k used, 30084k free, 155784k buffers Swap: 1052248k total, 88k used, 1052160k free, 222256k cached PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 8604 root 15 0 2568 992 780 R 0.3 0.2 0:00.10 top 1 root 15 0 2160 600 516 S 0.0 0.1 0:01.12 init 2 root RT -5 0 0 0 S 0.0 0.0 0:00.00 migration/0 3 root 34 19 0 0 0 S 0.0 0.0 0:00.00 ksoftirqd/0 4 root 10 -5 0 0 0 S 0.0 0.0 15:58.71 events/0 5 root 10 -5 0 0 0 S 0.0 0.0 0:00.04 khelper 6 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kthread 9 root 10 -5 0 0 0 S 0.0 0.0 0:00.06 kblockd/0 10 root 20 -5 0 0 0 S 0.0 0.0 0:00.00 kacpid 169 root 16 -5 0 0 0 S 0.0 0.0 0:00.00 cqueue/0 172 root 16 -5 0 0 0 S 0.0 0.0 0:00.00 khubd 174 root 10 -5 0 0 0 S 0.0 0.0 0:00.00 kseriod 240 root 15 0 0 0 0 S 0.0 0.0 0:00.00 khungtaskd 241 root 15 0 0 0 0 S 0.0 0.0 0:00.02 pdflush 242 root 15 0 0 0 0 S 0.0 0.0 0:03.05 pdflush 243 root 18 -5 0 0 0 S 0.0 0.0 0:00.73 kswapd0 244 root 16 -5 0 0 0 S 0.0 0.0 0:00.00 aio/0 这都是没有加入参数的情况下显示的。 (责任编辑:IT) |