Earthquakes occur when two tectonic plates push against each other due to convection current. When there is enough pressure, the tectonic plates go underneath or above each other in a sudden movement creating shock waves, which are called seismic waves. Seismic waves produces two waves. Firstly, they produce a Primary wave, this is a longitudinal wave. They also produce Secondary waves, these are usually more powerful and they are transverse waves. Primary waves can only travel through solids and liquids whereas secondary waves can only travel through solids. Longitudnal wave particles have their motion along the direction of the wave whereas transverse wave particles have their motion along the direction of the wave.
All of the electromagnetic radiation are transverse waves
Sound waves, including infra/ultrasound are longitudnal waves.