Skip to content

Instantly share code, notes, and snippets.

@PharaohKJ
Created August 8, 2014 07:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PharaohKJ/ac2780d6da7c23310cf1 to your computer and use it in GitHub Desktop.
Save PharaohKJ/ac2780d6da7c23310cf1 to your computer and use it in GitHub Desktop.
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