View Full Version : [ubuntu] proper way to kill background process?
May 27th, 2009, 02:28 AM
I started something running in the background with &. I killed the process with:
kill bg 
Is that the proper way to do it? And how do you switch to a background process?
Thank you for your help :)
May 27th, 2009, 02:32 AM
I don't know about the proper way but I normally use htop to kill things. Makes it easy and I don't have to know the correct name to do the deed.
May 27th, 2009, 04:43 AM
if it's a commandline process, then you can use
fg to bring it to foreground.
if it's a gui app, then just switch to the window.
and there is no harm in killing the process with kill command.
but if the process has another way of shutting down, then first bring it to foreground and then quit it through the proper way.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.