Old English fore (prep.) "before, in front of, in presence of; because of, for the sake of; earlier in time; instead of;" as an adverb, "before, previously, formerly, once," from Proto-Germanic *fura "before" (source also of Old Saxon fora, Old Frisian fara, Old High German fora, German vor, Danish for, Old Norse fyrr, Gothic faiura "for"), from PIE *prae-, extended form of root *per- (1) "forward," hence "in front of, before."
Now displaced by before. In nautical use, "toward the bows of the ship." Merged from 13c. with the abbreviated forms of afore and before and thus formerly often written 'fore. As a noun, "the front," from 1630s. The warning cry in golf is first recorded 1878, probably a contraction of before.
Old English æftan "from behind, behind, farthest back," superlative of Old English æf, af, of "away, away from, off" (from PIE root *apo- "off, away"). Cognate with Old Frisian eft "later, afterwards; as well," Old Norse eft "after," Middle Dutch echter, efter "later, again," Gothic afta "behind, past." The Germanic superlative suffix *-ta corresponds to PIE *-to (compare Greek prōtos "first," superlative of pro "before"). The word is now purely nautical, "in, near, or toward the stern of a ship."
<a href="https://www.etymonline.com/word/fore-and-aft">Etymology of fore-and-aft by etymonline</a>
Harper, D. (n.d.). Etymology of fore-and-aft. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/fore-and-aft