LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to open multiple terminals in run level 3 ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-open-multiple-terminals-in-run-level-3-a-849189/)

gardenair 12-08-2010 10:57 PM

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

Tinkster 12-08-2010 11:11 PM

Quote:

Originally Posted by gardenair (Post 4185496)
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 (Post 4185496)
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

gardenair 12-09-2010 12:37 AM

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.

Tinkster 12-09-2010 02:14 AM

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

kaushalpatel1982 12-09-2010 02:37 AM

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.

gardenair 12-09-2010 05:30 AM

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?

onebuck 12-09-2010 08:21 AM

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.
:hattip:


All times are GMT -5. The time now is 02:38 AM.