2

The difference between kill and killall

I tried kill command as

$ kill "PDF Expert"
-bash: kill: PDF Expert: arguments must be process or job IDs

It report error,
However, when test with

$ killall "PDF Expert"

The application "PDF Expert" was closed.

What's the difference between them?

  • Do you think that this answer is a satisfactory explanation of the difference between kill and killall: askubuntu.com/questions/271028/…? – karel Apr 8 '18 at 16:37
  • 4
    Is the answer not already present in the question? arguments must be process or job IDs – TRiG Apr 8 '18 at 16:38
  • 1
    whatis kill killall – Cyrus Apr 8 '18 at 16:57
  • kill will terminate a single process, killall , as the name implies, will kill all processes of the name given. See linuxconfig.org/kill-vs-killall-difference-and-command-usage for details. – Panther Apr 8 '18 at 17:11
  • Have you tried reading the documentation? man kill and man killall – glenn jackman Apr 8 '18 at 19:32
1

Kill works by process ID but, Killall can determine process by process ID it means if you give process name instead of process id you killall might find the process id and kill it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.