[Gllug] how to kill

Andrew Halliwell ah at gnd.com
Sun May 8 06:56:12 UTC 2005


And verily, didst mimo announce to the hordes:
> 
> I guess everybody knows this bash thing where you can press CTRL Z and 
> the current process goes to sleep (which is sometimes the only way to 
> get out of some stuck thing). Later on you can list your sleeping 
> processes with jobs command. Odd thing I always found is that they are 
> numbered 1,2,3,.. Now obviously, doing kill 1 is not a good idea, esp. 
> when you are root. Nevertheless, kill -- just invoked like this -- says 
> pid or jobid. But doesnt say how you specify the jobid. Tried [1] -- 
> didnt work. Anyone?

If you want to do things to things in the bash process list, you use %1, %2,
etc

so kill %1 should kill the first one, bg %2 should force the second into the
background, etc
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list