Syed Jahanzaib Personal Blog to Share Knowledge !

March 11, 2010

*nix: MRTG RRD & FIND command

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 8:48 AM

“ERROR: could not find RRDs.pm. Use LibAdd: in mrtg.cfg to help mrtg find RRDs.pm”
solution was:
yum install perl-rrdtool rrdutils php-rrdtool

find / -name ‘mypage.htm’

*nIX KILL: howto terminate a process using kill

Filed under: Linux Related — Syed Jahanzaib / Pinochio~:) @ 6:27 AM

Use ps command or pidof command to find out process ID (PID). Syntax:
ps aux | grep processname
pidof processname

For example if process name is yum, you can use any one of the following command to obtain process ID:
# ps aux | grep yum

OR use pidof command which is use to find the process ID of a running program:
# pidof yum

kill process using PID (process id)

Above command tell you PID (3486) of lighttpd process. Now kill process using this PID:
# kill 3486
OR
# kill -9 3486
Where,

  • -9 is special Kill signal, which will kill the process.

killall command examples

You can also use killall command. The killall command kill processes by name (no need to find PID):
# killall -9 yum


%d bloggers like this: