Linux Ask!

Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.

Nov 262012

What is the meaning of kill -0?


They are usually used to check if a given PID really exist or not (no side effect on Linux).


# kill -0 3182
-bash: kill: (3182) - No such process
# kill -0 3184
# nothing will be returned if process really exists.

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>