Полезная информация

UNIX in a Nutshell: System V Edition

UNIX in a Nutshell: System V EditionSearch this book
Previous: Reference: nlChapter 2
UNIX Commands
Next: Reference: nohup


nm [options] objfiles

Print the symbol table (name list) in alphabetical order for one or more object files (usually ELF or COFF files). Output includes each symbol's value, type, size, name, etc. A key letter categorizing the symbol can also be displayed. Output includes each symbol's value and name, preceded by a key letter categorizing the symbol. If no object file is given, use a.out.



Report only external and static symbols; obsolete.


Report all information; obsolete.


Suppress the header.


Use with -p; indicate WEAK symbols by appending an asterisk (*) to key letters.


Sort the external symbols by name.


Report values in octal.


Precede each symbol with its key letter (used for parsing).


Report the object file's name on each line.


Truncate the symbol name in the display; obsolete.


Report only the undefined symbols.


Sort the external symbols by value.


Print nm's version number on standard error.


Report values in hexadecimal.

Key letters


Absolute symbol.


Common symbol.


Data object symbol.


File symbol.


Symbol with no type.


Section symbol.


Text symbol.


Undefined symbol.

Previous: Reference: nlUNIX in a Nutshell: System V EditionNext: Reference: nohup
Reference: nlBook IndexReference: nohup

The UNIX CD Bookshelf NavigationThe UNIX CD BookshelfUNIX Power ToolsUNIX in a NutshellLearning the vi Editorsed & awkLearning the Korn ShellLearning the UNIX Operating System