[Ilugc] .a-tip-a-day. xargs command

  • From: lgp171188@xxxxxxxxx (Guruprasad)
  • Date: Mon Sep 21 10:01:42 2009

Hi,

On Mon, Sep 21, 2009 at 9:46 AM, balachandar muruganantham
<mbchandar@xxxxxxxxx> wrote:

On Sat, Sep 19, 2009 at 5:04 AM, Girish Venkatachalam <
girishvenkatachalam@xxxxxxxxx> wrote:

i use xargs most of the times to kill a particular process for e.g. httpd

ps -ef | grep httpd | awk '{print $2}' | xargs sudo kill -9


I use 'sudo pkill -9 <process name>' for the same purpose as I need
only a single command to do the same. :-)


Thank you.

Regards,
Guruprasad.

Other related posts: