For some PhD students, the path to an academic career can feel like a black box of sorts. How exactly does one make the leap from teaching assistant to professor?

For some PhD students, the path to an academic career can feel like a black box of sorts. How exactly does one make the leap from teaching assistant to professor?