'top' command question

Karl Larsen k5di at zianet.com
Tue Jul 8 11:55:52 UTC 2008


NoOp wrote:
> On 07/07/2008 05:22 PM, Robert Dailey wrote:
>   
>> Hi,
>>
>> Right now I'm trying to find all running processes in 'top' by command
>> name. For example, I want to find all processes with a command of
>> 'iperf', I have an iperf daemon running and I need to find the PID for
>> it in the list so I can kill it with <k>. How can I navigate the list
>> of processes in 'top'? Note that I'm using Ubuntu Server 8.
>>
>> Thanks.
>>
>>     
>
> Start top with a delay, so that it slows down the update:
>
> top -d10
>
> Then use Shift 'R' to swap the top and bottom pages so that you can see
> what they are. But it's easier to use ps aux:
>
> ps aux | grep iperf
>
> the first number to the right of the User will be the PID.
>
>
>   
    For a really long time I have used $ps -A which lists all the 
kernels activities and when you see the one you want to stop you do that 
by remembering the number of the item like 6324 and you kill it with 
$sudo kill 6324.


Karl
 

-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
   PGP 4208 4D6E 595F 22B9 FF1C  ECB6 4A3C 2C54 FE23 53A7





More information about the ubuntu-users mailing list