fore (adv.) Look up fore at Dictionary.com
Old English fore (prep.) "before, in front of;" (adv.) "before, previously," common Germanic (cognates: Old High German fora, Old Frisian fara, German vor, Gothic faiura, Old Norse fyrr "for"); from PIE *pr-, from root *per- (1) "forward, through" (see per).

As a noun, from 1630s. The warning cry in golf is first recorded 1878, probably a contraction of before.
fore (adj.) Look up fore at Dictionary.com
mid-15c., "forward;" late 15c., "former, earlier;" early 16c., "at the front;" all senses apparently from fore- compounds, which frequently were written as two words in Middle English.