A good way to learn is to pay close attention to the way managers talk about it. Movies like Office Space and The Office cut close at the truth, but don't quite get you there. They're dramatizations, moving at the speed of narrative, whereas real situations move at the speed of conversation.
One of the key things to remember is that qualifications have very, very little to do with it. The main thing they're looking for is for other people to like you. "Like you" is manager-speak for the sort of respect that will get them to take you seriously as a manager. If you ask them to do something, will they do it? Even if it has nothing to do with their job duties? That's a quality of a good manager.
Second, they need to need your services and they need to get it at the right price. They once tapped me to hire a junior engineer under me. I could not find anyone willing to work for the prices they wanted to pay, so I couldn't move up. Eventually they decided to switch technology stacks rather than acquire human capital.
During these talks, it was all I could do to keep up with the hidden meanings behind the things they were saying. In fact, now that I'm thinking about it with the benefit of hindsight, there are aspects of that experience that clearly show why there's so much coded language around this process and how I screwed things up by not understanding the language and expectations beforehand. I regret nothing, as I've got way better options than middle management at a non-technical firm.