The direction of deflection of a cathode ray particle passing through a magnetic field can be found by:
The Fleming’s left-hand rule can be applied to find the direction of magnetic field.
When a wire is carrying current, the magnetic field around the conductor can be found by left-hand thumb rule.