Help!Which command help us to see if we hit someone?

Help!Which command help us to see if we hit someone?
Thank you !

Headphones. Or a mod.