Linux bs command

Updated: 05/04/2019 by Computer Hope
bs command

On Unix-like operating systems, bs is a "battleship" game for Linux.

Note: The bs game is an heirloom (legacy) program, and may not be available for your operating system.


bs [ -b | -s ] [ -c ]



selects a 'blitz' variant: allows a side to shoot for as long as it continues to score hits.


selects a 'salvo' variant: allows a player one shot per turn for each of his/her ships still afloat. This puts a premium scoring hits early and knocking out some ships and also makes much harder the situation where you face a superior force with only your PT-boat.


permits ships to be placed adjacently: Normally, ships must be separated by at least one square of open water. The -c option disables this check and allows them to close-pack.



Begins a game of battleship.