歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux基礎知識 >> Fedora Linux下查看開機時間和進程情況

Fedora Linux下查看開機時間和進程情況

日期:2017/3/2 14:46:59   编辑: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

 
  這都是沒有加入參數的情況下顯示的。
 
Copyright © Linux教程網 All Rights Reserved