Regarding the command:

nice -5 /usr/bin/prog

Which of the following statements is correct?

A. /usr/bin/prog is executed with a nice level of -5.

B. /usr/bin/prog is executed with a nice level of 5.

C. /usr/bin/prog is executed with a priority of -5.

D. /usr/bin/prog is executed with a priority of 5.

题解

「nice」指令可以在运行指令的同时事先指定好进程的 nice 值。「-5」参数等同于「-n 5」,因此答案是选项 B。如果要设置成「-5」(负五),参数应为「--5」或是「-n -5」。