OS X isn't based on Linux, its based around a Unix framework with a fork of FreeBSD which isn't Linux, it is generally classified as a POSIX system.
However it does share similarities in the command line with the Linux kernel based systems.
Your best choice to learn is as others suggested, get...