WSU logo


College of Engineering & CS
Wright State University
Dayton, Ohio 45435-0001

CEG 333: Introduction to Unix

Prabhaker Mateti

nm


Syntax: nm [OPTIONS] FILE...

nm is a tool for getting information about the symbols contained in object files. By default, it displays the symbol type, value, and name.

This is useful for various common programming tasks. For example, to learn which symbols are external to the given file, use nm -g. Or when resolving linking problems, use nm to find out which library provides a certain function.