Entries linking to whatnot
Old English hwæt, referring to things in abstraction; also "why, wherefore; indeed, surely, truly," from Proto-Germanic pronoun *hwat (source also of Old Saxon hwat, Old Norse hvat, Danish hvad, Old Frisian hwet, Dutch wat, Old High German hwaz, German was, Gothic hva "what"), from PIE *kwod, neuter singular of *kwos "who," from PIE root *kwo-, stem of relative and interrogative pronouns. Corresponding to Latin quid.
Meaning "what did you say?" is recorded from c. 1300. As an adjective and adverb, in Old English. As a conjunction in late Old English. Exclamatory use was in Old English. What the _____ (devil, etc.) as an exclamation of surprise is from late 14c. As an interrogative expletive at the end of sentences from 1891; common in affected British speech. Or what as an alternative end to a question is first attested 1766. What have you "anything else one can think of" is from 1925. What's up? "what is happening?" first recorded 1881.
"To give one what for is to respond to his remonstrant what for? by further assault" [Weekley]. The phrase is attested from 1873; what for? as introducing a question is from 1760. To know what is what is from c. 1400; I'll tell you what to emphasize what is about to be said is in Shakespeare.
negative particle, a word expressing negation, denial, refusal, or prohibition, mid-13c., unstressed variant of noht, naht "in no way" (see naught). As an interjection to negate what was said before or reveal it as sarcasm, it is attested by 1900, popularized 1989 by "Wayne's World" sketches on "Saturday Night Live" TV show.
Not, spoken with emphasis, often stands for the negation of a whole sentence referred to: as, I hope not (that is, I hope that the state of things you describe does not exist). [Century Dictionary, 1895]
To not know X from Y (one's ass from one's elbow, shit from Shinola, etc.) was a construction attested from c. 1930 in modern use; but compare Middle English not know an A from a windmill (c. 1400). Double negative construction not un- was derided by Orwell, but is persistent and ancient in English, popular with Milton and the Anglo-Saxon poets.