ねもぷらす

ふぁいんでぃんぐねもの日記。プログラミングとか育児とか

lpic

リソース使用率の測定とトラブルシューティング

リソース測定のコマンド mac os の vmstat は vm_stat CPU システム全体 top iostat mpstat -P または mpstat -ALL vmstat sar -u | -P または mpstat -ALL プロセス単位 top ps u[ax] Load Average (負荷平均) top uptime w 物理メモリ システム全体 top fr…

/etc/passwd ファイルを一般ユーザが更新できる理由

$ ls -la /etc/passwd -rw-r--r-- 1 root root 951 2010-07-04 23:46 /etc/passwd パスワードファイルは root ユーザなのに、一般ユーザもパスワード変更は可能。 $ ls -la /usr/bin/passwd -rwsr-xr-x 1 root root 28480 2007-02-27 16:53 /usr/bin/passwd …

shutdownコマンド

個人PCでの利用は halt コマンドで終了したほうが効率よいけど、将来を見据えて shutdown コマンドを理解しなおす。 shutdownコマンド # shutdown [オプション] [時間] [メッセージ] オプション オプション 説明 -h シャットダウン終了後にシステムを停止。h…