Stack Exchange Network
Stack Exchange network consists of 181 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack Exchange
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this community
Anybody can ask a question
The best answers are voted up and rise to the top
You can close the terminal by pressing Ctrl-D at the prompt instead of using the window controls. This will do what you want.
answered Jul 14, 2012 at 19:23
39411 silver badge77 bronze badges
One solution is to use screen and detach from it:
sudo apt-get install screen
<program name> &
ctrl-a ctrl-d (this detaches the screen session)
This is useful especially when starting programs on remote servers. You can then run
screen -R to reattach. See this howto.
answered Jul 14, 2012 at 19:21
24611 silver badge44 bronze badges
firefoxin terminal and then close terminal without a problem