As an adverb, it means backwards. A ship moving astern is moving backwards, with the stern leading. As a navigational order, it means that the propeller(s) should be rotated in the reverse direction, as the propeller pitch should be set so as to generate thrust in the sternwards direction.