Original author(s) | Dennis Ritchie, Ken Thompson (AT&T Bell Laboratories) |
---|---|
Developer(s) | Various open-source and commercial developers |
Initial release | November 3, 1971; 49 years ago |
Operating system | Unix, Unix-like, Plan 9 |
Platform | Cross-platform |
Type | Command |
- Jun 18, 2015 For now, on version 15.04, you can download and extract nm-tool from the old package manually. Run the following commands. First, create a temp directory to work in: cd mkdir APTGET;cd APTGET Then, download the old version and extract the files.
- Diamond G Home Center & Rental View on map. Grants, NM 87020. Phone: (505) 287-8861. Shop our Local Ad. Opens in a new window. Join/manage your account.
The nm
command ships with a number of later versions of Unix and similaroperating systems including Plan 9. nm
is used to examine binary files (including libraries, compiled object modules, shared-object files, and standalone executables) and to display the contents of those files, or meta information stored in them, specifically the symbol table. The output from nm
distinguishes between various symbol types. For example, it differentiates between a function that is supplied by an object module and a function that is required by it. nm
is used as an aid for debugging, to help resolve problems arising from name conflicts and C++name mangling, and to validate other parts of the toolchain.
The GNU Project ships an implementation of nm
as part of the GNU Binutils package.
nm output sample[edit]
Nm-tool - utility to report NetworkManager state and devices Synopsis nm-tool Description The nm-tool utility provides information about NetworkManager, device, and wireless networks. See Also networkmanager(8), Referenced By networkmanager.conf(5), nm-online(1), nm-system-settings.conf(5), nmcli(1). Dns serversubuntukubuntuterminalshell.
If the previous code is compiled with the gcc C compiler, the output of the nm
command is the following:
When the C++ compiler is used, the output differs:
The differences between the outputs also show an example of solving the name mangling problem by using extern 'C' in C++ code.
See also[edit]
External links[edit]
The Wikibook Guide to Unix has a page on the topic of: Commands |
Nm Toolkit
Nm-tools
nm
: write the name list of an object file – Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Groupnm(1)
– Plan 9 Programmer's Manual, Volume 1