What is the meaning of Fore-and-aft?

parallel with the keel, that is, going from bow to stern (as opposed to square-rigged).

Source: wiktionary.org