A bayonet is a weapon in the shape of a knife, dagger, etc. attached to muzzle of a firearm (usually a rifle) for close combat. Although predominantly used for thrusting, they can also be used for slashing.