[SDOI2015]星際戰爭 (網路流+二分答案)
阿新 • • 發佈:2020-11-12
程序狀態:
執行中
就緒
停止
3、常用的檢視程序的命令
ps
靜態檢視程序資訊
ps aux / ps aux|less
top
實時的程序監控
常用命令
top 檢視所有程序
[root@yxlll ~]# top top - 16:27:13 up 2 days, 21:44, 1 user, load average: 0.00, 0.01, 0.05 Tasks: 68 total, 1 running, 67 sleeping, 0 stopped, 0 zombie %Cpu(s): 0.7 us, 0.3 sy, 0.0 ni, 99.0 id, 0.0wa, 0.0 hi, 0.0 si, 0.0 st KiB Mem : 1882028 total, 1377340 free, 83532 used, 421156 buff/cache KiB Swap: 0 total, 0 free, 0 used. 1647020 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1051root 10 -10 133140 15016 10212 S 0.7 0.8 25:56.03 AliYunDun 1 root 20 0 51788 3892 2600 S 0.0 0.2 0:39.90 systemd 2 root 20 0 0 0 0 S 0.0 0.0 0:00.00 kthreadd4 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 kworker/0:0H 5 root 20 0 0 0 0 S 0.0 0.0 0:00.71 kworker/u2:0 6 root 20 0 0 0 0 S 0.0 0.0 0:00.94 ksoftirqd/0 7 root rt 0 0 0 0 S 0.0 0.0 0:00.00 migration/0 8 root 20 0 0 0 0 S 0.0 0.0 0:00.00 rcu_bh 9 root 20 0 0 0 0 S 0.0 0.0 0:15.23 rcu_sched 10 root 0 -20 0 0 0 S 0.0 0.0 0:00.00 lru-add-drain --- //可翻頁
按 enter手動重新整理,q退出
top -d 1 1秒自動重新整理一次
top -d 1 -p 10 單獨檢視PID為10的程序