The term “grok” is probably best explained by the Greek word “ginóskó.”
The first time I knew of the word grok was from Robert Heinlein’s book Stranger in a Strange Land.