This is some advice I give to the girls, but I think it is as equally as valid for the guys.
Spending some time sitting in a shopping mall or another place where guys interact with friends and just quietly observing how guys treat each other, friends or people they do not know, and how they interact with women, is time well spent.
We have been socialised (usually) opposite to our true gender and it takes time and work to learn how people of our affirmed gender interact with each other and members of the opposite gender.
One I love

is how guys will wait with an utterly bored look (with a tinge of embarrassment) as their female SO goes shopping for clothes, particularly lingerie, and this interaction of 'yes bro I don't know how I put up with it' attitude.
Handshake; guys accept another mans full hand and firmly but gently grip and a quick but slow shake, looking into their colleagues eyes and saying something like 'nice to meet you'. Guys just about just touch the fingers of a womans' hand and very gently, saying something like 'lovely to meet you' while smiling warmly.
Brohugs, depend how well you know the guy but it is firm and with a firm pat but don't knock him off his feet. You are greeting not being dominant. To do so is an insult, just like trying to crush his hand.
Guys only hug women they know; relatives or long term female friends and it is an embrace. Let the woman kiss you on the cheek if she wishes. Sometimes instead of a kiss she will touch her cheek against yours. Never hug her so that her breasts are touching you. She is greeting a man she trusts and feels totally at ease with. It is totally nonsexual.
Women will often hug a female friend quickly with no embrace and just touch cheeks. Usually talking nonstop

. This gives the cues of what she wants to talk about with her friends.
Non of these ideas work in non western cultures, or with friends or acquaintances from other cultures that may have distinct boundaries. If you are fortunate enough to make friends with men or women from other cultures pick the cues from them. Most are trying very hard to assimilate into your culture and overcoming the socialisation they have received and want to fit in, but it can be very confronting - even more than it for us who have 'only' changed gender socialisation.
Sorry if this came over like 'Greetings for Dummies 101' it wasn't meant that way!