システムの状態を調べる

プロセスの状態

全プロセスの表示

ps -ef
ps aux

http://unixhelp.ed.ac.uk/CGI/man-cgi?ps

Note that "ps -aux" is distinct from "ps aux". The POSIX and UNIX standards require that "ps -aux" print all processes owned by a user named "x", as well as printing all processes that would be selected by the -a option. If the user named "x" does not exist, this ps may interpret the command as "ps aux" instead and print a warning. This behavior is intended to aid in transitioning old scripts and habits. It is fragile, subject to change, and thus should not be relied upon.

Fragile

Fragile

CPU使用率の高いプロセスの表示

top

http://www.atmarkit.co.jp/flinux/rensai/root07/root07b.html

メモリ、ディスクI/O、CPU使用率の状態

[tigerii@fedora ~]$ vmstat 2
procs -----------memory---------- ---swap-- -----io---- --system-- -----cpu-----
 r  b   swpd   free   buff  cache   si   so    bi    bo   in   cs us sy id wa st
 2  2  39844  57592  17528 377524    0   57  1684   883  638  519  6 51 30 13  0
 0  2  39844  60332  17940 377572    0    0  4540   956  814  480 13 65  0 22  0
 1  1  39844  61424  18148 366244    0    0  5772  1976  896  425 14 72  0 14  0
 6  1  39844  52560  18584 372184    0    0  2670  2364  863  549 15 70  0 15  0
 2  0  39844  58812  18884 359024    0    0  3982   942  693  778  9 58  0 33  0
 3  4  39848  56524  18536 353512    0    2  3848   642 1018 1576 11 68  5 16  0
^C
[tigerii@fedora ~]$ free
             total       used       free     shared    buffers     cached
Mem:        766960     706240      60720          0      16216     341932
−/+ buffers/cache:     348092     418868
Swap:      1507324      41116    1466208

http://www.atmarkit.co.jp/flinux/rensai/linuxtips/088vmstat.html
http://www.atmarkit.co.jp/flinux/rensai/root07/root07b.html
http://www.atmarkit.co.jp/flinux/rensai/tantei01/bangai01b.html
http://www.atmarkit.co.jp/flinux/rensai/tantei01/fig03.gif