This is probably a little overkill especially if you're running something like Gnome or KDE where you can have multiple bash windows, but you should look into screen.
Screen lets you run multiple terminal sessions in a single window. It also allows you to quit screen but leave the background processes running and at any later time reattach all those background processes so that you can't even tell you quit.
Basically to start screen you would start the terminal and then type screen
. It will give you a message about itself, just press enter to move past it. Screen is a full fledged program so I'm barely going to scratch the surface but here are some basic tasks. This is all assuming the default configurations (which since you haven't used the program should be the same).
There is a set of meta keys that must be pressed before each screen command, otherwise the input goes directly to which ever terminal session is shown. The default meta key is ctrl-a
. So for example to make a new window you would first hit ctrl-a
then you would hit c
Useful Screen Commands
To create a new window: ctrl-a c
To advance to the next window: ctrl-a n
To go back a window: ctrl-a p
To jump to a window: ctrl-a #
where # is the number of the session you want to switch to
To view all open windows: ctrl-a "
To close a window: type exit
as normal
To detach a session: ctrl-a d
To reattach a session: When starting screen add the -r
option
How to do What You Asked
So to do what you asked then you would follow these steps
Open the terminal
type screen
type apt-get install eclipse-platform
type ctrl-a c
Run your other commands
When your on step 5 your command from step 3 will continue running. To check on it at any time simply type ctrl-a p
. To get back to where you were typing your other commands type ctrl-a n
. When you are all done you can either quit screen and the terminal completely by typing exit
in all your windows. But if you are in the middle of a set of commands and wish to come back to it all later simply detach your session using ctrl-a d
. When you want to come back and finish simply start screen with the -r option like so screen -r
Once again this is just a simple example and it doesn't get into everything you can do with screen. But if you're doing a lot of work in the terminal screen can be a great tool.