Let's perform the following steps:
- In an open Terminal session, type the following and review the output:
$ nm --help
- Next, type the following and examine the output:
$ man nm
- Press q to quit the man page for nm. Alternatively, open a new Terminal tab by pressing Ctrl + Shift + T simultaneously on your keyboard and type the following in the new tab or available Terminal session. Review the following output:
$ nm ch05-example
$ nm ch05-example-stripped
$ nm ch05-example-debugging
$ nm ch05-example.o
- Next, type the following in an available Terminal session and examine the output:
$ nm -A -D ch05-example-stripped
- Type the following in an open Terminal session and review the output:
$ nm -f posix ch05-example
$ nm -f sysv ch05-example
- Next, type the following and study the output:
$ nm -A ch05-example ch05-example-debugging
- Type the following in an available Terminal session and examine the output:
$ nm -A -S ch05-example
- Next, type the following and review the output:
$ nm -A -n ch05-example
- Finally, type the following and study the output:
$ nm -l -a ch05-example-debugging