LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-18-2014, 07:54 AM   #1
stetas
LQ Newbie
 
Registered: Dec 2013
Posts: 12

Rep: Reputation: Disabled
Question How to terminate a running process from a terminal ?


Hello!

How I can terminate a running process from a terminal for example (sshd) ?

Last edited by stetas; 01-18-2014 at 08:21 AM.
 
Old 01-18-2014, 08:26 AM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,023

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
man kill
 
Old 01-18-2014, 09:06 AM   #3
myatthu
Member
 
Registered: Jan 2014
Distribution: CentOS, Fedora, Ubuntu
Posts: 108

Rep: Reputation: 17
You can find out the process id you want to kill
Code:
ps -ef |grep [process name]
Terminate with
Code:
kill -9 [process id]
 
Old 01-18-2014, 09:25 AM   #4
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 4,023

Rep: Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625Reputation: 625
theres also pgrep and pidof to find process id's... also check out killall.
 
  


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
LXer: Linux TCP Wrappers & Which Services can be secured via TCP Wrappers LXer Syndicated Linux News 0 12-16-2013 09:01 AM
Tcp wrappers 7.6 - how to nqk28703 Linux - Software 1 04-20-2011 11:03 AM
tcp wrappers nishith Linux - Security 4 11-11-2008 04:45 AM
Tcp wrappers sysconfig Linux - Security 4 09-08-2006 08:20 AM
TCP Wrappers ltrain Linux - Security 6 05-31-2001 10:40 PM


All times are GMT -5. The time now is 12:14 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration