11.01.2013 Views

Workshop

Workshop

Workshop

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

The first number is the process ID (or PID). This is the number you refer to when you want to do<br />

something to this process. For example, the commands for killing and restarting this process might look<br />

something like this:<br />

$ ps -ax | grep httpd<br />

52 ? S 0:01 /usr/sbin/httpd<br />

$ su<br />

Password:<br />

# kill 52<br />

# ps -ax | grep httpd<br />

# /usr/sbin/httpd<br />

# exit<br />

$ ps -ef | grep httpd<br />

871 ? S 0:01 /usr/sbin/httpd<br />

You’ll notice here that I don’t need to use su until I actually kill the process and restart it. Then I<br />

immediately exit the su session so that I keep my super user risk at a minimum. I also like to recheck the<br />

process table before and after I’ve restarted the daemon just to make sure it’s not out there after I kill it or<br />

to make sure that it is there after I restart it.<br />

Previous Table of Contents Next

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!