LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   stopping jobs (https://www.linuxquestions.org/questions/linux-newbie-8/stopping-jobs-441275/)

binary_0011 05-03-2006 11:31 AM

stopping jobs
 
when i hit command "jobs" , it lists out all the jobs.

how to kill jobs number 3 if i want to? Do i still need to run ps -ef | greb something and kill the process id?

THanks.

b0uncer 05-03-2006 11:36 AM

nope, just do

Code:

kill 3
or, if you like

Code:

kill %3
that works (in bash at least)

Freestone 05-03-2006 04:23 PM

Another alternative is to run 'top'.

I'm assuming your distro has 'top' installed.

'top' will list all the running process in realtime and the defualt kill signal I believe is '15'.
Read the 'top' man page (man top) and that'll getya going.
Another thing you can do ( just for the sake of learning) is from a command line---: kill -l
That'll list all the SIG*** options for killing a process, etc.

I hope I presented this so its clear and it does'nt seem like Martian hieroglyphics!

Cheers,
Freestone


All times are GMT -5. The time now is 08:49 AM.