Kenyans247 Forum

Welcome, Guest: Join Kenyans247 LOGIN!

Stats: 223 Members, 11,345 topics and 65 posts Date: Friday 03 April 2020 at 09:26 AM
TrendingRecentNewestClassifiedDirectoryLivescoresLive Kenyan TVLive Kenyan Radio

Kill a Process by Process Name from Ubuntu Command Line

Kenyans247 / Science/Technology / Computers / Kill a Process by Process Name from Ubuntu Command Line (16 View's)

Process Of Legally Changing Your Name In Kenya Rift Valley Academy Admissions Process Overview Adoption Process: How Child Adoption In Kenya Works Raw Milk Prices Sink To Sh. 25 As Processors Sell At Sh. 110 To Consumers
(Go Down) (» Reply topic)
Kill a Process by Process Name from Ubuntu Command Line by Kenyans247(m): Sun 22, March, 2020 10:47am
There are a number of ways to kill a process if you know the name of the process. Here’s a couple different ways you can accomplish this. We are going to assume that the process we are trying to kill is named irssi

kill $(pgrep irssi)

killall -v irssi

pkill irssi

kill `ps -ef | grep irssi | grep -v grep | awk ‘{print $2}’`

These techniques can be useful in shell scripts, where you wouldn’t know the process ID and would need to restart or kill a process.

(» Reply topic) (» Go Up)

Recommended for you

» Land Amalgamation (combine Land Under One Title) Process In Kenya » Raw Milk Prices Sink To Sh. 25 As Processors Sell At Sh. 110 To Consumers » Kasneb Accreditation Process Step By Step - Kenya » How To Get Export Processing Zones (epz) Enterprise Commercial License In Kenya
Viewing this topic:
1 guest(s) viewing this topic

Sections: Counties, Environment, Naija Forums, How To, World List Directory, Education, Webmasters, Programing, Building/Architecture, Universities, Fashion, Forum Games, Poetry, Gaming, TV/Movies, Ugandan Forum, Burundi Forum, South Sudan Forum, Rwanda Forum, Somalia Forum,

Kenyans247 - Copyright © 2019 - 2020 Sande Kennedy. All rights reserved. See How To Advertise.
Disclaimer: Every Kenyans247 member is solely responsible for anything that he/she posts or uploads on Kenyans247.