Do you have a Macbook Pro or Macbook Air and want to know how to show the routes it has in the routing table? Are you looking for the Windows command route print equivalent in OSX? This post is for you.
This is the command to show routes on a Mac OSX:
-r flag means to show routes.
-n flag means to not resolve IPs to hostnames.
Here is an example output of the command:
In the case above, the default gateway of this Mac is 192.168.20.1. Meaning all routes are pointing to that system.