Last active
February 22, 2017 03:18
-
-
Save 5470x3/3d9cfde890720a77995af7030f1fdba5 to your computer and use it in GitHub Desktop.
net-tools非推奨ギプス
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# original by sonots | |
# http://blog.livedoor.jp/sonots/archives/38589335.html | |
# usage: include the following in .bashrc | |
net_tools_deprecated_message () { | |
echo -n 'net-tools コマンドはもう非推奨ですよ?耄碌なんじゃないですか? ' | |
} | |
arp () { | |
net_tools_deprecated_message | |
echo 'Use `ip n`' | |
} | |
ifconfig () { | |
net_tools_deprecated_message | |
echo 'Use `ip a`, `ip link`, `ip -s link`' | |
} | |
iptunnel () { | |
net_tools_deprecated_message | |
echo 'Use `ip tunnel`' | |
} | |
iwconfig () { | |
echo -n 'iwconfig コマンドはもう非推奨ですよ?おじさんなんじゃないですか? ' | |
echo 'Use `iw`' | |
} | |
nameif () { | |
net_tools_deprecated_message | |
echo 'Use `ip link`, `ifrename`' | |
} | |
netstat () { | |
net_tools_deprecated_message | |
echo 'Use `ss`, `ip route` (for netstat -r), `ip -s link` (for netstat -i), `ip maddr` (for netstat -g)' | |
} | |
route () { | |
net_tools_deprecated_message | |
echo 'Use `ip r`' | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment