Open programs with the terminal without being stuck to the terminal

Launch the command with & at the end (background).

Example:

$ firefox &