Show routing table in Mac OS X

Here’s a quick one. The route command won’t show you the full routing table in Mac OS X. You have to use the netstat command:

netstat -rn

This will print the numeric view. If you prefer host names, omit the n parameter:

netstat -r