Which TWO commands send a signal to processes selected by their NAME rather than by a numeric PID?

LPIC-1 Exam 101-500, objective 103. GNU and Unix commands medium

Machine-checked — no person has signed for it. This question was read against the source cited below by an automated pass, which found no contradiction. That is a weaker claim than it sounds: the same kind of process wrote the question, so it can confirm its own mistake.

Treat it as a good draft rather than as settled fact, and read the source below before you rely on it. It is not used in mock exams here — only questions a person has signed for are.

How these questions are written — where each question comes from, what the verification ledger records, and what happens when one is found wrong.

The options

Choose 2.

Correct killall

Correct. killall signals every process whose name matches exactly, defaulting to SIGTERM.

Correct pkill

Correct. pkill signals processes whose name matches the given pattern, and it accepts extra selectors such as -u user.

Not correct kill

Wrong. kill takes PIDs or shell job specifications like %1. Give it a name and it reports an error.

Not correct pgrep

Wrong. pgrep uses the same matching rules as pkill but only prints the PIDs it finds; it never sends a signal.

Not correct renice

Wrong. renice does not send signals at all — it changes the scheduling nice value of an existing process.

Why

killall and pkill both signal by name; kill needs PIDs; pgrep only reports them; renice changes priority. A safe habit is to run pgrep with your pattern first and confirm the list before running the same pattern through pkill.

Where this comes from

Cited
LPI exam objective 103.5
What it says
Select processes by name or by PID when signalling them.

Practise this

Reading one question is not practice. The trainer will draw a short set from objective 103 and space the ones you get wrong.

Practise LPIC-1 Exam 101-500

More questions on this objective

All questions on GNU and Unix commands

Practise LPIC-1 Exam 101-500