LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I close programs that I can't see? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-close-programs-that-i-cant-see-203294/)

brynjarh 07-10-2004 02:23 AM

How do I close programs that I can't see?
 
pptp for example, how would I close it? (it doesn't have a GUI).
I know
# killall pptp
works but is that the proper way to close the program?

salparadise 07-10-2004 02:34 AM

one way is to type

ps -ax

this will list all running processes, find the PID number for the process you want to shut down and type

kill xxxx

where xxxx is PID

or

you can do a similar thing with either KDE System Guard or Gnome System Monitor
both list all running processes in a GUI

rylan76 07-10-2004 04:18 AM

I use

ps -A -f | grep programname

and then just kill -9 or kill -1 and then die program PID, like the other post said.

MasterC 07-10-2004 04:30 AM

You can also pkill :) You can kill HUP something to tell it to hang up, this is what I generally use when an application just needs to be 'reset'.

Cool

zulfilee 07-10-2004 05:02 AM

This is also a good command if you know just the process name

Ex: For pppd

kill -9 `pgrep pppd`

{but -9 is not the safest option)

Where pgrep is process grep command
Cheers
Z


All times are GMT -5. The time now is 03:54 PM.