JAVA/Sun Exam Questions

What command should you use?

User fred runs a program that consumes all of the system’s memory while continuously spawning a new program. You decide to terminate all of fred’s programs to put a stop to this. What command should you use?

A.
kill -u fred

B.
pkill -U fred

C.
passwd -l fred

D.
kill `ps -U fred -o pid`