1

I created a script to run my react build on port 5555

enter image description here

and on running it, I get

enter image description here

I want to quit this process without killing the server.

How can I do it?

Output with &

enter image description here

Kulfy
  • 17,696
Parag Katoch
  • 1,213

1 Answers1

5

What you are looking for is sending the current foreground job to the background. You can simply achieve this by:

suspending the current job. [CTRL-Z] then,

send the job to the background. bg

To see if the the job has being successfully send to the background, run: jobs

Another method would be starting the process in the background. To achieve this, include an ampersand "&" at the end of the command. Example; if my script name is process1, I will run it using ./process1 &.

Success!

Justech
  • 186