Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-10-2004, 03:23 AM   #1
Registered: May 2004
Location: Iceland
Distribution: Ubuntu Dapper Drake
Posts: 172

Rep: Reputation: 30
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?

Last edited by brynjarh; 07-10-2004 at 03:26 AM.
Old 07-10-2004, 03:34 AM   #2
Senior Member
Registered: Nov 2002
Location: Birmingham UK
Distribution: Various
Posts: 1,736

Rep: Reputation: 146Reputation: 146
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


you can do a similar thing with either KDE System Guard or Gnome System Monitor
both list all running processes in a GUI
Old 07-10-2004, 05:18 AM   #3
Senior Member
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,540

Rep: Reputation: 101Reputation: 101
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.
Old 07-10-2004, 05:30 AM   #4
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 69
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'.

Old 07-10-2004, 06:02 AM   #5
Registered: Apr 2004
Location: India
Distribution: Redhat,Fedora
Posts: 430

Rep: Reputation: 39
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Multiple processes, programs don't close? Influx Slackware 2 10-10-2005 10:55 AM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 01:02 PM
Programs refuse to close sometime... TippyToes Linux - General 3 08-13-2003 06:45 PM
Running programs suddenly close!! Kenelm Linux - General 5 01-26-2002 09:57 PM
Suggestions on programs to close ports Stephanie Linux - Security 1 01-03-2002 02:52 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration