"Shut up" is a direct command with a meaning very similar to "be quiet", but which is commonly perceived as a more forceful command. Shut up is considered rude and impolite, and it also can be used to say "shut your f***ing mouth up!". The phrase is probably a shortened form of "shut up your mouth" or "shut your mouth up".