Skip to content

Instantly share code, notes, and snippets.

@penguin2716
Created July 8, 2014 10:36
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save penguin2716/088126c7f59e5cca33e5 to your computer and use it in GitHub Desktop.
Save penguin2716/088126c7f59e5cca33e5 to your computer and use it in GitHub Desktop.
source this script in your ~/.bashrc and stop using deprecated package
#!/usr/bin/env zsh
function arp {
echo "use 'ip n' instead."
return 1
}
function ifconfig {
echo "use 'ip a (ip addr)', 'ip link', or 'ip -s (ip -stats)' instead."
return 1
}
function iptunnel {
echo "use 'ip tunnel' instead."
return 1
}
function iwconfig {
echo "use 'iw' instead."
return 1
}
function nameif {
echo "use 'ip link' or 'ifrename' instead."
return 1
}
function netstat {
echo "use 'ss', 'ip route (for netstat-r)', 'ip -s link (for netstat -i)', or 'ip maddr (for netstat-g)' instead"
return 1
}
function route {
echo "use 'ip r' instead."
return 1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment