Jza Posted July 19, 2006 Report Share Posted July 19, 2006 So i want to locate an application through top on a faster way that i am currently doing. For example I usually go to top, then to narrow the list of processes I type 'u' which stand for users and type the user that has the running application. Then I wait the application to appear on screen and then type 'k' for kill and the PID. However usually it takes some time waiting on the application to appear, sometimes I know the name of the application I want to kill but I need to wait untill it shows on screen to kill it. My question is this, is there a faster way to look for the application I am looking for? And if thats the case how can I do it, I guess if I list top and do a grep it might work but maybe I just need to learn top better. Quote Link to comment Share on other sites More sharing options...
aioshin Posted July 19, 2006 Report Share Posted July 19, 2006 ps ax | grep application_name Quote Link to comment Share on other sites More sharing options...
paul Posted July 19, 2006 Report Share Posted July 19, 2006 or ps -U <username> Quote Link to comment Share on other sites More sharing options...
Steve Scrimpshire Posted July 19, 2006 Report Share Posted July 19, 2006 Without using top, I prefer the first answer. These are much faster ways. Also, if you know the name of the program, you can: killall <<programname>> Which will kill all running instances of programname if you are root. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.