How do you do is defined as a polite greeting that you can use when first introduced to someone.
(idiom)An example of "how do you do" is what you would say as you shake hands with someone you meet for the first time.
See How do you do? in Webster's New World College Dictionary
or how-d'-ye-do
noun
Learn more about How do you do?