2015年5月31日日曜日

htop (cmd) OSX

htopコマンドはLinuxのプロセスおよびメモリ使用量のビューアである。macではtopコマンドのオプションがLinuxと異なるため、同様の情報をみたい場合に便利である。
導入も非常に簡単である。

# brew install htop [/usr/local/Cellar/tbb/4.3-20140724/include/tbb]
==> Downloading https://github.com/max-horvath/htop-osx/archive/0.8.2.2.tar.gz
######################################################################## 100.0%
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/htop-osx/0.8.2.2
==> make install DEFAULT_INCLUDES='-iquote .'
==> Caveats
htop-osx requires root privileges to correctly display all running processes.
You can either run the program via `sudo` or set the setuid bit:
sudo chown root:wheel /usr/local/Cellar/htop-osx/0.8.2.2/bin/htop
sudo chmod u+s /usr/local/Cellar/htop-osx/0.8.2.2/bin/htop
You should be certain that you trust any software you grant root privileges.
==> Summary
🍺 /usr/local/Cellar/htop-osx/0.8.2.2: 11 files, 184K, built in 19 seconds
view raw htop_install.sh hosted with ❤ by GitHub
以下が実際に表示した様子である。Linuxのtopコマンドのオプション1よりも視認性が良い。


0 件のコメント:

コメントを投稿