LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 07-10-2004, 02:23 AM   #1
brynjarh
Member
 
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 02:26 AM.
 
Old 07-10-2004, 02:34 AM   #2
salparadise
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

or

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, 04:18 AM   #3
rylan76
Senior Member
 
Registered: Apr 2004
Location: Potchefstroom, South Africa
Distribution: Fedora 17 - 3.3.4-5.fc17.x86_64
Posts: 1,498

Rep: Reputation: 90
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, 04:30 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
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
 
Old 07-10-2004, 05:02 AM   #5
zulfilee
Member
 
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
Cheers
Z
 
  


Reply


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 09:55 AM
my table with programs when i press in button (left down corner) do no show programs sagi7ario Mandriva 1 03-12-2004 12:02 PM
Programs refuse to close sometime... TippyToes Linux - General 3 08-13-2003 05:45 PM
Running programs suddenly close!! Kenelm Linux - General 5 01-26-2002 08:57 PM
Suggestions on programs to close ports Stephanie Linux - Security 1 01-03-2002 01:52 PM


All times are GMT -5. The time now is 05:02 PM.

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