Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal Kill command
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Dysfunction" data-source="post: 729435" data-attributes="member: 51052"><p>Finding the PID is pretty simple. </p><p></p><p>Here's a screenshot of me killing firefox.</p><p></p><p><img src="http://img.skitch.com/20080921-m4dfumw7ei85muj8d29gkyy1pw.jpg" alt="" class="fr-fic fr-dii fr-draggable " style="" /></p><p></p><p></p><p></p><p>Now, since we're talking killall... killall -z firefox </p><p>will kill all PID's matching the name firefox of your assumed user, the z tells it to also kill any zombied processes.</p><p></p><p>ps -ef | grep firefox</p><p></p><p>this will list all running processes, then search through that list and display all that include the word firefox. If you take a look at my example, the first # is the process owner ID (me) the second is the PID.</p></blockquote><p></p>
[QUOTE="Dysfunction, post: 729435, member: 51052"] Finding the PID is pretty simple. Here's a screenshot of me killing firefox. [IMG]http://img.skitch.com/20080921-m4dfumw7ei85muj8d29gkyy1pw.jpg[/IMG] Now, since we're talking killall... killall -z firefox will kill all PID's matching the name firefox of your assumed user, the z tells it to also kill any zombied processes. ps -ef | grep firefox this will list all running processes, then search through that list and display all that include the word firefox. If you take a look at my example, the first # is the process owner ID (me) the second is the PID. [/QUOTE]
Verification
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Terminal Kill command
Top