LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-08-2010, 10:57 PM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Rep: Reputation: 31
How to open multiple terminals in run level 3 ?


Hi,
I am using red hat Linux 4 I have two question.

Normally in GUI interface i open multiple terminal at a time like one for log file and one for configuring any file etc etc.
The problem is normally I do work on run level 3 but in that way how can i open multiple terminal at at time ? Is there any way...

2- When I use the command

Code:
# tail -f /var/log/messages
in GUI i normally close the windows after viewing the log file messages.Is there any hot key by which I can again see the prompt example [root@localhost ~}# to write the command instead of closing the terminal windows ?

thanks in advance.
garden
 
Old 12-08-2010, 11:11 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by gardenair View Post
Hi,
I am using red hat Linux 4 I have two question.

Normally in GUI interface i open multiple terminal at a time like one for log file and one for configuring any file etc etc.
The problem is normally I do work on run level 3 but in that way how can i open multiple terminal at at time ? Is there any way...
man screen

Quote:
Originally Posted by gardenair View Post
2- When I use the command

Code:
# tail -f /var/log/messages
in GUI i normally close the windows after viewing the log file messages.Is there any hot key by which I can again see the prompt example [root@localhost ~}# to write the command instead of closing the terminal windows ?

thanks in advance.
garden
I don't follow - why would the console close when you
interrupt tail?



Cheers,
Tink
 
Old 12-09-2010, 12:37 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
well after viewing # tail -f /var/log/messages i just use ctrl+c and it show me the prompt.Now i am reading man screen
but it is not clear to me how to split or do work on multiple terminals just like in GUI.
The last thing which creating problem to me now i can't go back to the shall prompt after viewing man page.please help me
I press Alt-F6 and it show me a new terminal and Alt-F5 with another session but from the last session i can see man page and no way to exit from it and see my shall prompt.
please guide me.
 
Old 12-09-2010, 02:14 AM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
You quit out of a man-page by pressing 'q'.

Once screen is started you can "open" new sessions by
pressing Ctrl-a Ctrl-c.
You switch between your sessions e.g., by number
Ctrl-a x (x=0..9)
or cycle through them with
Ctrl-a P or Ctrl-a N
respectively to switch to Previous or Next.


HIH.


Cheers,
Tink
 
Old 12-09-2010, 02:37 AM   #5
kaushalpatel1982
Member
 
Registered: Aug 2007
Location: INDIA
Distribution: CentOS, RHEL, Fedora, Debian, Ubuntu, LinuxMint, PCLinuxOS
Posts: 153

Rep: Reputation: 9
You can have use ALT + F1 to F5 keys to open multiple screens. they will open separately not on single screen.

You can close the windows by ctrl+d. press until you get the login screen.
 
Old 12-09-2010, 05:30 AM   #6
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 610

Original Poster
Rep: Reputation: 31
thanks Tinkster for your guidence. Well as you mentioned that
Code:
Once screen is started you can "open" new sessions by 
pressing Ctrl-a Ctrl-c.
when I press Ctrl-a it does't affect on the screen but when I press Ctrl-c it just do as I press Enter key.
How can I view that how many sessions of shell are currently running if Ctrl-a is working?
 
Old 12-09-2010, 08:21 AM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,642
Blog Entries: 27

Rep: Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011Reputation: 2011
Hi,

If you want to learn how to use 'screen' then look at a tutorial. Power Sessions with Screen is dated but a good tutorial. 'Screen' is easy to understand and provides the means to manage within a console.

Read it and post back any questions.
 
  


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
How to open terminal automatically at run level 5 gardenair Linux - Newbie 6 06-26-2010 10:19 AM
Xterm or Konsole to 1:open, 2:position, 3:initialize multiple terminals in an order linux_newb_help_wanted Linux - Newbie 8 02-03-2010 12:24 AM
Locale or run level - cannot open display message konzo Linux - Newbie 5 01-14-2010 04:32 PM
How do I get all 6 virtual terminals in back level 4 rob.rice Slackware 4 08-10-2008 04:30 AM
emacs in run level 3 then switch to X (level 7) then back to level 3 dsoliver Slackware 3 09-01-2006 03:31 AM


All times are GMT -5. The time now is 02:38 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration