The fire command, invoked by pressing f, fires a quivered weapon at a square that you select (usually one with a monster).
Note that Throwing weapons need merely to be quivered, but Arrows and Bolts require you to have an equipped Bow or Crossbow (respectively) before you can fire them.