In gedit's case, I just keep a copy open all the time. As long as you have an existing copy running, launching gedit
calls from the terminal and then closing the terminal won't kill gedit.
For other things, what other people have said would work too. I'm a fan of nohup
... But if you need a terminal you can detach but then re-attach to, you want to look at screen
.
- Run it in a terminal and then run something that keeps pushing output. I use the Django development server but
irssi
or evenwatch uptime
would be good examples. - Kill the terminal and start a new one.
- Run
screen -r
and BOOM, you're back in.
screen
is a lot bigger than that and you can combine it with byobu
for a better terminal experience. Read around.