linux命令 top詳解
引言:今天的命令是用來看cpu信息的top
我們先看man top
top - display Linux processes
翻譯:顯示linux進程信息
具體的描述如下:
The top program provides a dynamic real-time view of a running sys‐
tem. It can display system summary information as well as a list of
processes or threads currently being managed by the Linux kernel.
The types of system summary information shown and the types, order
and size of information displayed for processes are all user config‐
urable and that configuration can be made persistent across restarts.
The program provides a limited interactive interface for process
manipulation as well as a much more extensive interface for personal
configuration -- encompassing every aspect of its operation. And
while top is referred to throughout this document, you are free to
name the program anything you wish. That new name, possibly an
alias, will then be reflected on top's display and used when reading
and writing a configuration file.
翻譯如下:
top命令提供一個運行中系統(tǒng)的動態(tài)實時視圖,它可以顯示系統(tǒng)摘要信息以及由linux內(nèi)核管理的的進程或線程的列表。系統(tǒng)概要信息的類型被顯示出來,類型、順序為進程顯示的信息大小都是用戶配置的?梢酝ㄟ^重新啟動使配置持久化。
該程序為進程操作提供有限的交互式界面。并為個人配置提供了更廣泛的接口 - 涵蓋了其操作的各個方面。 雖然本文檔中提到了toplinux命令大全,但你可以隨意命名該程序。 該新名稱(可能是別名)將反映在top的顯示界面上,并在讀取和寫入配置文件時使用。
我們再來看一下命令執(zhí)行結(jié)果
top - 17:00:43 up 12 days, 1:13, 3 users, load average: 6.27, 3.04, 2.31
Tasks: 444 total, 3 running, 441 sleeping, 0 stopped, 0 zombie
%Cpu(s): 19.0 us, 4.7 sy, 0.0 ni, 75.1 id, 1.1 wa, 0.0 hi, 0.2 si, 0.0
KiB Mem : 16131568 total, 926512 free, 8862288 used, 6342768 buff/cache
KiB Swap: 8191996 total, 8191900 free, 96 used. 5994096 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
5297 nobody 20 0 283588 20388 5372 R 9.3 0.1 9:25.75 php-fpm
23312 nobody 20 0 372584 21660 6272 S 9.3 0.1 14:31.92 php-fpm
23325 nobody 20 0 353288 13676 4916 R 9.3 0.1 14:55.50 php-fpm
......
上一個教程:touch命令詳解
下一個教程:singlefold