Skip to content

Instantly share code, notes, and snippets.

@AKB428
Last active March 4, 2018 08:33
Show Gist options
  • Save AKB428/dbdba5f98645e7539d87 to your computer and use it in GitHub Desktop.
Save AKB428/dbdba5f98645e7539d87 to your computer and use it in GitHub Desktop.
iftopをOSXにbrewでイントール
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ brew install iftop
==> Downloading http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/iftop/1.0pre4 --mandir=/usr/local/Cellar/iftop/1.0pre4/share/man
==> make install
==> Caveats
iftop requires superuser privileges. You can either run the program
via `sudo`, or change its ownership to root and set the setuid bit:
$ sudo chown root:wheel /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
$ sudo chmod u+s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
In any case, you should be certain that you trust the software you
are executing with elevated privileges.
==> Summary
🍺 /usr/local/Cellar/iftop/1.0pre4: 9 files, 124K, built in 14 seconds
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ iftop
-bash: iftop: command not found
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ sudo brew install iftop
Password:
Error: Cowardly refusing to `sudo brew install`
You can use brew with sudo, but only if the brew executable is owned by root.
However, this is both not recommended and completely unsupported so do so at
your own risk.
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ sudo chown root:wheel /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ sudo chmod u+s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop
Siori@Siori-no-MacBook-Air:~/code/git_akb428/chino (master)$ ln -s /usr/local/Cellar/iftop/1.0pre4/sbin/iftop /usr/local/bin/iftop
@mvught
Copy link

mvught commented Oct 14, 2016

Awesome, Thanks mate

Copy link

ghost commented Jan 10, 2018

Thank you for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment