Today while reading the comments in the nice Hackaday post CNC:
An Introduction to CNC Machine Control
I came across a nice open-source software used for CNC machining simulation and gCode validation tool called CAMotics:
This program was developed by Joseph Coffland. And work very well on Linux (tested on Ubuntu 16.04).