LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 03:13 PM   #1
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

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, 03:34 PM   #2
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

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, 03: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, 04: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, 04:38 PM   #5
swamprat
Member
 
Registered: Sep 2005
Location: New Jersey, USA
Distribution: VMware V12 and V15 in Windows 10, MX Linux 23.1, Kubuntu 23.10, IBM z/VM 5.4
Posts: 558

Original Poster
Rep: Reputation: 34
Thanks All,

Yes 'fg' did it.
 
  


Reply



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 07:20 PM
Returning to shell breaks Xserver on ATI Raedon Mobility 7500 Imaboyo Debian 4 08-30-2006 06:54 AM
ld returning 1 angelo_maci Linux - Software 1 04-10-2006 01:41 PM
shell prints bad code when returning message backpacker Linux - Software 14 06-29-2005 02:53 AM
Returning to X from terminal RemusX2 Linux - General 2 06-05-2004 04:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:33 AM.

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
Open Source Consulting | Domain Registration