You is used when talking to one or more people directly. It means the person or people listening or reading.
You are my friend.
Can you help me now?
You can use you to mean anyone or people in general. It is not about a specific person but about people often or always.
You need water to live.
When you work hard, you succeed.
You is used when telling someone to do something. Often the word you is understood and commands do not always say it.
You close the door now.
You sit down and listen.
You can add emphasis to a sentence by stressing "you" to show importance or surprise. This makes the listener feel the statement is strong.
You yourself said it was true.
I want you to try your best.
You is part of many common sayings where it means people in general or life situations, not a specific person.
You win some, you lose some.
You never know what will happen.
In computer games or apps, you refers to the person using the device or playing the game, making it feel personal and direct.
You have 10 points left.
Do you want to save the game?
You can be used in a sarcastic way to show disbelief or criticize what someone said or did. The tone changes the meaning.
Oh, you think that is funny?
You forgot again, didn’t you?