[Gllug] how to kill
David Damerell
damerell at chiark.greenend.org.uk
Wed Mar 16 13:11:46 UTC 2005
On Wednesday, 16 Mar 2005, mimo wrote:
>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?
kill %1
Also "bg 1" or "fg 1" to restart that job in the background/foreground.
The man page for kill notes that "kill" may be a shell builtin, so of
course you should be checking the man page for your shell.
--
David Damerell <damerell at chiark.greenend.org.uk> Kill the tomato!
Today is First Brieday, March.
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list