8

The nm the utility to list symbols in a binary doesn't include in its documentation any explanation or clue of how it got to be named nm.

I imagine some of the long experienced UNIX developers can shed some light.

Why is the nm utility named as such?

Catskul
  • 17,916
  • 15
  • 84
  • 113
  • I _think_ it stands for "name mangling". Not sure. – fge Jan 13 '12 at 23:05
  • 3
    At 110 baud, it was faster to type "nm" than "name". Similarly, "ls" is faster than "list", "ld" is faster then "load", and "cc" is faster than "c". Oops. I guess my theory isn't right. ;-) – Richard Pennington Jan 13 '12 at 23:15
  • 2
    It is indeed surprising that Unix has no single-letter commands like `c`. Maybe the risk of typos was deemed to great? – Fred Foo Jan 14 '12 at 12:47

3 Answers3

13

It's an abbreviation for "names" or "name list".

Nm prints the name list (symbol table) of each object file in the argument list.

(V7 Unix manual, 1979)

Stephane Chazelas
  • 5,859
  • 2
  • 34
  • 31
Fred Foo
  • 355,277
  • 75
  • 744
  • 836
3

Looking at http://pubs.opengroup.org/onlinepubs/9699919799/utilities/nm.html it looks like it is an abbreviation for "NaMe list".

gpeche
  • 21,974
  • 5
  • 38
  • 51
1

Name symbols. Thus "nm" is the abbreviation chosen.

MJB
  • 7,639
  • 2
  • 31
  • 41