Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to restart some progress which is stopped by "ctrl+z"?

When I am using

postgres -D /usr/local/pgsql/data  

to start the postgresql progress, I send a ctrl+z signal to stop it.
And now when I used createuser and psql, it has no response.

what can I do?

like image 741
YOung Avatar asked Oct 28 '14 03:10

YOung


People also ask

How do I restart after Ctrl Z?

ctrl z is used to pause the process. It will not terminate your program, it will keep your program in background. You can restart your program from that point where you used ctrl z. You can restart your program using the command fg.

How do I start a stopped process?

To restart a process with the stop command, you must first determine the JID by using the jobs command. You can then use the JID with the following commands: fg %JID Resume a stopped or background job in foreground. bg %JID Restart a stopped job in background.


1 Answers

Type fg in your shell. This will resume your process

like image 167
triggerNZ Avatar answered Sep 28 '22 02:09

triggerNZ