プロセス状況を表示できる「ps」コマンド。オプション指定と「sort」コマンドを組み合わせることで、メモリ消費順の表示が可能だ。
# ps -aux | sort +5n 〜中略〜 apache 26731 0.0 2.7 17636 3432 ? S Jan19 0:00 /usr/sbin/httpd root 5427 0.0 2.7 17360 3464 ? S Jan21 0:00 /usr/libexec/naut root 12619 0.0 2.9 41960 3736 ? S 2002 25:06 /usr/bin/python / root 12611 0.0 3.4 23688 4396 ? S 2002 4:13 gnome-panel --sm- apache 26728 0.0 3.5 17676 4424 ? S Jan19 0:00 /usr/sbin/httpd apache 26729 0.0 3.6 17752 4604 ? S Jan19 0:00 /usr/sbin/httpd root 12613 0.0 5.0 38244 6396 ? S 2002 0:05 nautilus --no-def root 20631 99.9 11.7 16952 14764 ? RN 2002 712920:19 ./setiathome |
Copyright © ITmedia, Inc. All Rights Reserved.