If we only want to pause the process rather than terminate the process. Then we usually need to move the processes executed at the front end to the backend for execution.
Process interruption
Ctrl-C
========================================================== ======
Make the process run in the background
Programs &
========================================================== ======
Send the process back to the foreground for execution
To make the process return to the foreground for execution, you can use the fg command.
========================================================== ======
Pause a process
If we only want to pause the process rather than terminate the process. We usually need to move the processes executed on the foreground to the background for execution.
To pause the foreground process, press Ctrl-Z.
At this time, we can use the fg command to restore the process from running on the foreground, or use the bg command to move the process to the background for running.
========================================================== ======