also rat's-tail, from rat (n.) + tail (n.1). Used since 16c. of conditions, growths, or devices held to resemble a rat's long, hairless tail in any way, including "lank lock of hair" (1810); "end of a rope" (1867). Related: Rat-tailed. A rat-tail file (1744) is a fine, round file used for enlarging holes in metal.
expressing incredulity, disappointment, annoyance, etc., 1886, American English, from rat (n.).
also rat race, 1934 in reference to aviation training, from rat (n.) + race (n.1).
A rat race is ... a simple game of "follow the leader" in fighter planes. The leader does everything he can think of — Immelmanns, loops, snap rolls, and turns, always turns, tighter and tighter. [Popular Science, May 1941]
In the 1930s actual rat races of some sort are frequently mentioned among popular carnival and gambling attractions. Meaning "fiercely competitive struggle," especially to maintain one's position in work or life is by 1939. Rat-run is from 1870 in the sense of "maze-like passages by which rats move about their territory," but originally and usually in a derogatory transferred sense.
[Matthew] Milton was not, at the period we write of [c. 1811], at all in the ring ; for in the following March he was steward of a rat-race, held at a public-house in Shepherd's-market, where four of these "varmin," decorated with different coloured ribands, were started for a sweepstakes, round the clubroom, before a host of sportsmen. ["Sporting Incidents at Home and Abroad," The Sporting Review, May 1848]
"a rodent mammal" 1835 (as an adjective 1833), from Modern Latin Rodentia, the order name, from Latin rodentem (nominative rodens), "the gnawers," present participle of rodere "to gnaw, eat away," which is of uncertain etymology, possibly is from an extended form of PIE root *red- "to scrape, scratch, gnaw." Uncertain connection to Old English rætt (see rat (n.)). They are characterized by having no canine teeth and strong incisors.
"a rattling sound or effect," 1680s, echoic, originally of a cooper hammering tubs.