"ascertaining of the position of a ship by measurement of the distance run" (without observation of heavenly bodies), 1610s, perhaps from nautical abbreviation ded. ("deduced") in log books, but it also fits dead (adj.) in the sense of "unrelieved, absolute."
"the spirit of the sea," 1751, first mentioned in Smollett's "The Adventures of Peregrin Pickle" as ("according to the mythology of sailors") an ominous and terrifying fiend who "presides over all the evil spirits of the deep, and is often seen in various shapes, perching among the rigging on the eve of hurricanes, shipwrecks and other disasters." Davy Jones's Locker "bottom of the sea," is 1803, from nautical slang, of unknown origin; second element may be from biblical Jonah, regarded as unlucky by sailors.
1722, originally nautical, also close-fights, "bulkheads fore and aft for men to stand behind in close engagements to fire on the enemy," it reflects the confusion of close (v.) and close (adj.); "now understood of proximity, but orig. 'closed' space on ship-board where last stand could be made against boarders" [Weekley]. Compare also closed-minded (1880s), a variant of close-minded, as if "shut" rather than "tight," also closed-fisted, occasional variant of close-fisted "stingy."
In lexicons of sea language going back to 1759, the bitter end is the part of a cable which is round about the bitts (the two great timbers used to belay cables) when the ship is at anchor (see bitt).
Bitter end of the Cable, the End which is wound about the Bitts. ["The News-Readers Pocket-Book: Or, a Military Dictionary," London, 1759]
So, when a cable is played out to the bitter end, there is no more left to play. The term began to be used c. 1835 in non-nautical use and with probable influence of or merger with bitter (adj.).
"small bag used by sailors for needles, thread, scissors, thimble, etc.," 1828, nautical slang, of uncertain origin, perhaps from the alleged British naval phrase commodity bag. Hence also ditty-box (1841).
Every true man-of-war's man knows how to cut out clothing with as much ease, and producing as correct a fit, as the best tailor. This is a necessity on board ship, for the ready-made clothing procured of the purser is never known to fit, being generally manufactured several sizes larger than necessary, in order that it may be re-cut and made in good style. [Charles Nordhoff, "The Young Man-of-War's Man," 1866]