I use CentOS and I have a little bit of difficulty with background tasks
When something like updatedb command is running, I press CTRL+Z, instead of running in the background it immediately says
+ Stopped updatedb
Which I assume means the task has stopped, well this upsets me a little bit I thought CTRL+Z sends the task to background not stop it.
Then I use the bg command and it returns
+ updatedb &
And then it seems like the task is continuing in the background, but the problem is if the task has some standard output it will be shown on the display! Making the command shell almost useless.
I know I can redirect the standard output to a file or dev null or something but why all this pain to do a simple task? What's a better way of doing the same?
I mean not adding & at the end of the command but just sending the current process to the background and having it not be annoying in CentOS?