LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Kill a process by command (https://www.linuxquestions.org/questions/programming-9/kill-a-process-by-command-48716/)

ITJedi 03-07-2003 10:03 AM

Kill a process by command
 
What is the syntax for killing a command using the command that was run such as (cp)?

kill ???

Thanks!

wapcaplet 03-07-2003 10:08 AM

killall whatever

Sometimes this doesn't work, though, in which case it's good to use the process ID number. You can usually find that out by running:

ps ax

There are other related commands for killing processes (sometimes they won't accept the killall command) - but I haven't figured 'em out yet.

membrax 03-07-2003 10:31 AM

Besides, when you've a process running in a window-defined GUI environment, you can use the console and type in : XKILL
Then you'll just have to point and click with your mouse on the window running the process you want to kill.

ITJedi 03-07-2003 10:49 AM

No GUI command line only.

Thanks for your input.


All times are GMT -5. The time now is 08:49 AM.