JAVA/Sun Exam Questions

Which command configures the system to produce core files in the global repository only

You have determined that it is unnecessary to save all core files generated by your system. You would only like to save core files generated by applications that are executed from the /usr/bin directory.

Which command configures the system to produce core files in the global repository only if the executables were run from the /usr/bin directory?

A.
mkdir -p /var/core/usr/bin; coreadm -g /var/core/usr/bin/%f.%p.%n

B.
mkdir -p /var/core/usr/bin; coreadm -G all -g /var/core/%d/%f.%p.%n

C.
mkdir -p /var/core/usr/bin; coreadm -G /usr/bin -g /var/core/usr/bin/%f.%p.%n

D.
mkdir -p /var/core/usr/bin; coreadm -G /usr/bin