Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Can I use sudo for kill only not root processes ?

share|improve this question

migrated from Jan 1 '13 at 9:44

This question came from our site for professional and enthusiast programmers.

sudo kill lets you send signals to any process. (Although not all signals can be sent to the init process.) – Dietrich Epp Jan 1 '13 at 8:44

sudo kill -n ID_of_process_to_signal

Where n is a number from the list off `kill -l' (that is the letter l).
If none is specified then signal 15 TERM (software termination signal) will be used.

Note that this is the same as for normal usage of kill. Why ask specifically for kill run as root?

share|improve this answer

You must log in to answer this question.