A study has shown that bosses who consider themselves incompetent have a greater tendency to lash out at those around them (source).
Here are some steps that will indicate you How to be a good boss:
1) Don't turn your back on your workers.
Realize that management succeeds through the efforts of the workers.
2) Fly high.
You must have great aspirations, great goals, demand the best of yourself and demand the best of others.
3) Get to know your employees to know their strengths.
Why do you work in this company? Why do you work in this department? What is it that motivates them? If you know how to align your motivations with your goals, you will become a good manager.
Remember that they are people with whom you will spend a lot of time in your life. You must know them thoroughly.
4) Teach them to solve problems without your intervention.
Delegate responsibilities and trust the ability of your employees.
5) Address each problem clearly and directly.
It is not about crushing others but being direct and honest. It's a huge time saver and quite frankly it pays off. Remember that your goal is to promote productive behavior and maintain respect for others, not to antagonize your employees.
Remember, try to be a good boss otherwise what happens to the protagonist of this video will happen to you: