Using cal command of Ubuntu
I've been searching for cal -3 functionality on Mac as well.

From your quote, there's an alternative, GNU gcal, which is radically different from cal command. There's a tutorial that's easy to follow as well.

So I settled with it. You can type gcal . for cal -3 equivalent.