late 14c., "to greet courteously and respectfully," earlier salue (c. 1300), from Latin salutare "to greet, pay respects," literally "wish health to," from salus (genitive salutis) "greeting, good health," related to salvus "safe" (from PIE root *sol- "whole, well-kept"). The military and nautical sense of "display flags, fire cannons, etc., as a mark of respect" is recorded from 1580s; specific sense of "raise the hand to the cap in the presence of a superior officer" is from 1844.