Back to Basics!

Ralf Mardorf silver.bullet at zoho.com
Tue Apr 5 14:54:40 UTC 2016


On Tue, 5 Apr 2016 12:41:59 +0100, Colin Watson wrote:
>As a side note, pkill is available by default, does basically all the
>same things as killall with a slightly nicer option layout

Nothing wrong with using either, killall or pkill [1], this reminds me
to recommend to use the terminal with tab-key for auto-completeion and
cursor-up/down-keys to scroll through the history of used commands.

Regards,
Ralf

[1]
If we wish to kill a single app, without the need to push the tab key to
auto-complete the app name pkill is an advantage.

e.g.

pkill qjackc
pkill galcu

to kill qjackctl and galculator OTOH if we use killall we could kill
several apps (with or without --wait option) and we could complete the
shortened names using the tab-key.

killall qjackctl galculator

killall --wait qjackctl galculator

I as well would use the tab-key for pkill to avoid killing processes
accidentally, OTOH what ever advantage we prefer of one or the other
command, to some extent they provide the same functionality, e.g.

killall -r galcu

does kill galculator

pkill -x galcu

doesn't kill galculator.

Seldom somebody will get in touch with the System V model, more likely
we get in touch with some BSD, so killing everything by accident to
unlikely happens.

http://www.freebsd.org/cgi/man.cgi?query=killall&sektion=1





More information about the ubuntu-users mailing list