use the following to run command in background, it detaches from terminal
nohup command &
or if running command from termial, to put in background do:
command
then `ctrl+z` on keyboard to suspend current process, then type:
bg
to push suspended process to background. type:
jobs
to list current jobs, including your background process. type:
fg %n
where `n` in job number from `jobs` command.
`nohup command &` can easily be scripted.