The first teaching job: prior knowledge or do people get trained?
Some do teaching as part of their Masters or PhD studies.

Others do a teacher training course before, or after, Masters or PhD.

Some do teacher training without wanting to do a Masters or PhD and teacher training courses can be short (about 1 year) or longer.