Cathode rays were discovered in late 1800 by J.J. Thomson. There are consists of stream of electrons emitted from heated cathode. Anode the positive terminal attracts the electrons from the cathode. The hole in the anode allows the electron to pass through it creating a beam of electrons shoots out in forward direction. This whole setup is called electron gun.