The friendliest word in Italian began as “I am your slave”. ciao was borrowed from Venetian s-ciao, “slave”, in particular the phrase s-ciao vostro, in essence “I am at your service”. Wiktionary finds the first attestation in Carlo Goldoni’s La Locandiera of 1752, in the form “Amici, vi sono schiavo”, “Friends, I am your slave”. So every tourist waving across a piazza is grovelling in Venetian. Greetings are like this. They are a small ceremony that wears down until only a noise is left, and the map keeps a record of what the ceremony was.
Younger than they look
Some greetings are much younger than you would think. Thai สวัสดี (sa˨˩wat˨˩diː˧) feels timeless, and it was coined in the 1930s by Phraya Upakit Silapasan of Chulalongkorn University from Sanskrit svasti, “well-being”, which had been used in Thai only in the openings of inscriptions. Wiktionary dates the first use to 1933, the first official use to 1943, and the government of the day promoted it. English hello is on record from 1826, from older hollo. It is often credited to Thomas Edison for the telephone, and it appears in print decades before the telephone. Japanese こんにちは (konnitɕiwa) is half a sentence, from 今日は (konnichi wa), “as for today”, cut off from something like “how are you doing today?” Turkish merhaba came from Arabic.
A very widespread greeting is a wish for peace. Hebrew שלום (ʃaˈlom) is the word for peace, and Arabic has its cognate behind السلام عليكم (as-salāmu ʿalaykum), which is what Urdu السلام علیکم (əsːalaːm əlaɪkʊm) says. Korean 안녕하세요 (annjʌŋhasejo) asks whether you are well, or peaceful. Hindi नमस्ते (nəməsteː) is a Sanskrit “salutations to you”, and it is used for most purposes, including goodbye. Georgian გამარჯობა (ɡamardʒoba) is a greeting built on victory, and the related გაუმარჯოს (gaumarjos) is listed as “cheers”, “hello” and “long live”.
Reporting the facts
A few greetings simply report the facts. Zulu sawubona is a contraction of “we see you”, a pleasant thing to be told. Swahili habari means “news”, borrowed from Arabic, so the greeting is an enquiry. Polish cześć means honour, from a Proto-Slavic word, and it has shrunk to something you say to friends. Croatian bok looks like a word for “side”, and it is not: it is a devoiced Bog, “God”, from greetings like Bog s tobom, “God be with you”, and it has been recorded in Zagreb since the middle of the 20th century.
Calling for a boat
Some have been borrowed for reasons that are hard to reconstruct. Czech ahoj is the English sailors’ ahoy, and Czech is spoken in a landlocked country. Wiktionary’s own entry stops to ask why and how it was borrowed. Tagalog kamusta is Spanish cómo está, “how is it?”, with the vowels moved. Spanish hola itself probably comes from French holà, “hey, stop”, and it is related to Germanic calls, including Old High German holā, used especially in hailing a ferryman. So the Spanish hello may go back to someone calling for a boat.
All of this is the same act: I see you, and I mean you no harm. What differs is what a language thought it needed to say for that to be believed, whether that was peace, God, news, or an offer to be your slave.