Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I want to stop a process from running but I dont know which process is suitable to be killed cause I'm afraid that if I stop the wrong process, it might make the system unstable. Any suggestion on stopping a process? Is it wise to stop a process from the /usr or /sbin directory which is runned by root?
If you know the name of the process, eg sendmail, just type ps -aux | sendmail, and that will list all processes with sendmail in the name, along with their PIDs (process id's).
then just kill the process by number. ie if it's pid 567, just kill 567 will do it.
if you want to get a list of al the processes runing, and then sit down and pore over it, type 'ps -aux > processes.txt
That will send a detailed list of all the processes to the file processes.txt
then you can print it, and try to work out what each is/does.
if you see a process called xyz, look for a man page for that program . 'man xyz' will do that. That will get you info on most of the stuff that's running, and you can decide which ones you need/don't.
Anything you want to stop from loading at bootup, remove the S* file from /etc/rc.d.rc3.d (to see the names of the files kicked off at startup, type 'ls -l /etc/rc.d/rc3.d/S*' ie list all the files, that start with S, in that directory.
Or if you are running X, use the services program to select which ones you want/don't want.
If you don't know WHICH process you want to stop, then how do you know that you want to stop something?? What problem are you trying to solve......
if you do "ps" you will see all the processes. (see man ps) If you don't know what something is, then you can bet that killing it might not be good. On the other hand, you probably won't do irreversible damage by experimenting (After backing up all your data, of course... )