LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2008, 04:13 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Rep: Reputation: 34
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
 
Old 01-14-2008, 04:34 PM   #2
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
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?
 
Old 01-14-2008, 04:40 PM   #3
jakefolger
LQ Newbie
 
Registered: Nov 2007
Location: NJ
Distribution: Debian
Posts: 7

Rep: Reputation: 0
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.
 
Old 01-14-2008, 05:17 PM   #4
lopoetve
Member
 
Registered: Aug 2001
Distribution: Too many.
Posts: 102

Rep: Reputation: 15
Quote:
Originally Posted by jakefolger View Post
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.
this should be it.

as an addition, google up screen, as it offers better options for this.
 
Old 01-14-2008, 05:38 PM   #5
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, (Which Exit LOL), USA
Distribution: Centos 6.7 Under VMware in Win7
Posts: 455

Original Poster
Rep: Reputation: 34
Thanks All,

Yes 'fg' did it.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Graphic shell stopped working lagu2653 Linux - General 4 12-18-2007 08:20 PM
Returning to shell breaks Xserver on ATI Raedon Mobility 7500 Imaboyo Debian 4 08-30-2006 07:54 AM
ld returning 1 angelo_maci Linux - Software 1 04-10-2006 02:41 PM
shell prints bad code when returning message backpacker Linux - Software 14 06-29-2005 03:53 AM
Returning to X from terminal RemusX2 Linux - General 2 06-05-2004 05:30 PM


All times are GMT -5. The time now is 04:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration