The procps-ng top interactive display is open.
Enter a PID and open the prompt for changing its nice value.
Which interactive command should be pressed first?
In procps-ng top, r starts the renice operation. k sends a signal and q quits, so they have different roles.
Detailed explanation
kIncorrect. k opens the signal-selection action.
Incorrect. k opens the signal-selection action.
qIncorrect. q exits top.
Incorrect. q exits top.
rCorrect. r opens the prompt for changing a process's nice value.
Correct. r opens the prompt for changing a process's nice value.
hIncorrect. h opens help.
Incorrect. h opens help.
Try it yourself
An example you can run in a temporary verification environment.
top -b -n 1 | head -n 1Expected result
topの概要行。対話キーrは安全上、自動検証では実行しないKey points
- r starts renice
- k sends a signal
- Permissions still constrain renice
Notes
- Environment: procps-ng 4.x
- Command output formatting can vary slightly by distribution or tool version.
- Run the example in a temporary directory or process when possible.
Foundation review
Read the scope first
Check whether the command acts on the current shell, a new process, an existing process, or a file.
Verify the observable result
Use the supplied command and compare the output with the expected result.