Dude is a slang greeting term between men, meaning "guy" or "man." For example: "Dude! So, like, what's up?" It's been popularized by movies and TV shows, and has a distinctive whiff of American West Coast hippie culture to it.
In the American nineteenth century dude had another life as a term for a dandy — a particularly well-groomed and fancily-dressed young man. From this came the term of dude as meaning a big city dweller unfamiliar with the ways of the Wild West. When such types came out West to enjoy the rugged life, they stayed in "dude ranches," basically resorts or spas, not real working ranches, and the term is still around today.
n a man who is much concerned with his dress and appearance
George Bryan Brummell
English dandy who was a fashion leader during the Regency (1778-1840)
a conceited dandy who is overly impressed by his own accomplishments
a British dandy in the 18th century who affected Continental mannerisms