The story
From race (“to cut, scratch, or tear (someone or something) with a sharp object”, verb) + knife.
First known use, by meaning
- from mid 19th c. A kind of knife hooked at the point, used for marking outlines on metal, wood, etc.
Etymology from Wiktionary, CC BY-SA 4.0.