As a manager of both civilian and military personnel, I have a simple rule that as people leave each day, I try to make a point of saying 'thank you for your help today' and ensuring that any positive comments by seniors about their work are passed directly to them.
similarly, I ensure that I take every chance to praise and name check my team for their efforts with seniors, not to brown nose, but to ensure they know who put the effort in at the last minute to dig them out of a hole.
My other cardinal rule is to refuse to say something about a member of my team to another that I would not say to their face.
I only wish my peers (civilian and military) behaved in a similar way, and I can but hope that when appropriate my own seniors would do the same for me.