Returning to a stopped shell.
I had to switch to a new shell using the cntl_Z command and this worked. I was editing the item below. Now I'm finished with the current shell and would like to return to the previous shell but I don't know how...
Can anyone shed some light on this ... thanks. [root@centos5 ~]# jobs [1]+ Stopped vi /etc/postfix/main.cf |
What I'm saying here is that I use cntl-z to open up a new shell so how do I get back to the first one?
|
I could be wrong but I believe the command is fg
I'm pretty sure ctrl-z moves the current process to the background. Using fg will move it back to the foreground. Let me know if that works for you. |
Quote:
as an addition, google up screen, as it offers better options for this. |
Thanks All,
Yes 'fg' did it. |
All times are GMT -5. The time now is 07:34 PM. |