Linux Command Directory
This directory of Linux commands is from Linux in a Nutshell, 5th Edition.
Click on any of the 687 commands below to get a description and list of available options. All links in the command summaries point to the online version of the book on Safari Bookshelf.
nm [options] [objfiles]
Print the symbol table in alphabetical order from one or more object files. If no object files are specified, perform operations on a.out. Output includes each symbol's value, type, size, name, and so on. A key letter categorizing the symbol can also be displayed.
Print debugger symbols.
Display only defined symbols.
Specify output format (bsd, sysv, or posix). Default is bsd.
Print external symbols only.
Print help message, then exit.
Print source filenames and line numbers for each symbol from available debugging information.
Sort the external symbols by address.
Don't sort the symbols at all.
Sort in reverse, alphabetically or numerically.
Include mappings stored by ar and ranlib when printing archive symbols.
Sort by size.
Use the specified radix for printing symbol values. Accepted values are d for decimal, o for octal, and x for hexadecimal.
Specify an object code format other than the system default.
Report only the undefined symbols.
Print input filenames before each symbol.
Same as --format=bsd.
Translate low-level symbol names into readable versions. You may specify a style to use when demangling symbol names from a foreign compiler.
Print dynamic, not normal, symbols. Useful only when working with dynamic objects (some kinds of shared libraries, for example).
Same as -f posix.
Print the size of defined symbols.
Print nm's version number on standard error.