How to send a running process to background?
-
ctrl+c then bg
-
ctrl+z then bg
-
ctlr+m then bg
-
ctrl+z then fg
Ctrl+Z suspends a running process, then 'bg' resumes it in background. Ctrl+C terminates the process. 'fg' brings a background job to foreground, not background. Option A's order is wrong.
Ctrl+Z suspends (stops) the currently running foreground process and returns control to the shell; running bg then resumes that stopped job in the background. This is the standard job-control sequence in Unix/Linux shells. Ctrl+C would terminate the process instead of suspending it, so there'd be nothing left to background. Ctrl+M is just a carriage return, not a job-control signal. "Ctrl+Z then fg" would suspend it and then bring it back to the foreground, not background.