Which command to only output the IPv6 routing table? $ netstat -nr is great for outputting the Mac OS X IP routing tables.

However its output is long as it contains both IPv4 and IP6 routing tables.

Sometimes I wish to output only the IPv6 routing table. Which short terminal command can I use to only see the IPv6 routing table?
To output only IPv6 info, use the -f address_family option.

Example: netstat -nr -f inet6

From the netstat man page:


  −f address_family
  
  Limit statistics or address control block reports to those of the
  specified address family. The following address families are
  recognized: inet, for AF_INET, inet6, for AF_INET6 and unix, for
  AF_UNIX.