how to run command in background in linux

//here two more commands will helpful for running commands or tasks in background

#nohup command &
example

#nohup virtualbox &

or

#virtualbox &

or

#virtualbox
ctrl+z
stopped
#bg
//it will go background

#fg virtualbox
//come front

// then virtual box was running background and the logs are stored in "nohup.ouy" either current or home directory

// you can view the running jobs by

#jobs

// and bg and fg will helpful to bring the jobs front and back

#fg virtualbox

//then you may kill the job by task id

#ps -aux | grep virtualbox

#kill -9 2134

Post a Comment

0 Comments