If you are logged into OS X as usual, you can get your system version from “About This Mac” in the Apple menu. This is not helpful when you are remotely connected to a server via SSH, however. So how do you do it?
You can get OS X’s version from the command line, like this:
1 2 3 4