LinuxQuestions.org
Review your favorite Linux distribution.
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-13-2010, 01:09 PM   #1
noony123
Member
 
Registered: Oct 2010
Posts: 167

Rep: Reputation: 0
Why 6 consoles/ttys in linux


Hi all.

I have tried alot and now i simply gave up on this confusion. I really dont get the concept of having 6 ttys in linux. See if i am in Gui mode, and i want to work on shell, i will simply open a new terminal, if i want another, i will open another, and so on. Whats the need of having a complete seperate console at each run level ?

A friendly explanation would be really appreciated. Pls guys really need some help here :-(,
 
Old 12-13-2010, 01:17 PM   #2
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Many people, especially years ago, don't use a GUI.
 
Old 12-13-2010, 01:20 PM   #3
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

So ? kindly elaborate it, do you mean its useless now-a-days ?
 
Old 12-13-2010, 01:23 PM   #4
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
not useless, just less often used i would imagine, but there are still people who use linux without a gui, especialy servers, so having 6 distinct ttys can be usefull
 
Old 12-13-2010, 01:30 PM   #5
honeybadger
Member
 
Registered: Aug 2007
Location: India
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855

Rep: Reputation: Disabled
Looks like you do not work in cli much . I work in the console around 90% of times. I edit files and databased and play music in cli. Sometimes I forget linux has a gui . There are ways you can manipulate pictures too using the cli.
The shell of winduhs is IE and the shell of linux is the bash prompt. Well, in your case if you do not want a cli then you can edit /etc/inittab as root (please keep a backup in case something goes wrong) and you can make the computer the way _you_ behave. Do you know that you can even print with the cli? So apart from playing games and watching some movies I do not see any use of the gui.
My two cents .
 
Old 12-13-2010, 01:31 PM   #6
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Sir,

So, pls pardon me if it seems i am insisting, but in case i am using GUI (which i am), does it make 6 ttys useless ?
 
Old 12-13-2010, 01:35 PM   #7
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Dear Silverback,

PLEASE DONT SAY THIS !!!!, I LOVE LOVE CLI. i just go to gui to get used to linux gui or for browsing. I do each and every task in cli. I am learning linux only because i love working on cli.
 
Old 12-13-2010, 01:39 PM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387Reputation: 2387
Hi,

No, using a GUI to log in does not make tty's useless.

One example (happened to me this afternoon): I was playing with Debian Squeeze and did something I shouldn't have which resulted in a black screen (using GUI login) and no way out. I switched to tty2, logged in as root to fix the problem (and used tty3 for opening the appropriate man page for reference).

Life would be hard and frustrating with only 1 tty........
 
Old 12-13-2010, 01:46 PM   #9
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,200

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
its as useless as a spare tire on a car, most of the time you aren't going to use it but you'd be in big trouble if you needed it and it wasn't there
 
Old 12-13-2010, 01:53 PM   #10
noony123
Member
 
Registered: Oct 2010
Posts: 167

Original Poster
Rep: Reputation: 0
Oh i c now. Basically i am from windows, thats why such a useful technique went over my head. In windows, if the gui hangs, we have no choice but to restart the system (if ctrl-alt-del is also not responding), but i guess in linux, we might not face that screen of death i guess.

Really useful tool i must say. I am sure, i will find more use to it once i get more experienced.

Really thanks guys
 
Old 12-13-2010, 05:20 PM   #11
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
If you are in X, having one or two ttys just in case do not harm. Use mingetty if you want to save some ram and you don't need all the fancyness.

But, really, even if you work in tty all the time, you don't want more than one or two ttys. You should rather learn to use screen or tmux which are way more powerful.
 
1 members found this post helpful.
Old 12-13-2010, 08:31 PM   #12
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
On Linux, you can open xterms (these are virtual terminals); the MS equiv is cmd.exe (not IE).
The ttys you are asking about are basically the console. On most serious servers (ie not at home) a GUI is unusual to have installed.
The nearest MS equiv was the DOS shell you had before MS added the Windows GUI.
 
Old 12-13-2010, 08:39 PM   #13
MTK358
LQ 5k Club
 
Registered: Sep 2009
Posts: 6,443
Blog Entries: 3

Rep: Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720Reputation: 720
Quote:
Originally Posted by chrism01 View Post
the MS equiv is cmd.exe (not IE).
What might Internet Explorer have to do with this?
 
Old 12-13-2010, 08:53 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
@post #5
Quote:
The shell of winduhs is IE and the shell of linux is the bash prompt.


IME, IE = FF, cmd.exe = bash ....
 
Old 12-13-2010, 09:17 PM   #15
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,186

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
Well, on most distributions, tty1 is used to run the initialization script which usually finishes by starting an X-server instance on tty7. The tty2 through tty6 are usually reserved for non-gui usage (e.g., remote login), while tty7 through tty10 is often reserved for GUI application. (And do note that, typically, there are 10 ttys defined, not 6.)

For example, I often run KDE on tty7, GNOME on tty8, and XFCE on tty9. That lets me jump between different window managers for different purposes.
 
  


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
Why does linux start 6 virtual consoles/terminals? pantherlehr Linux - General 3 07-17-2008 01:25 AM
Linux freezes and locks all consoles... but SSH works tornado419 Linux - General 5 09-02-2004 04:02 PM
Linux consoles palanisaravanan Linux - General 1 01-24-2004 10:01 AM
free remote linux consoles bobster666 Linux - General 7 02-16-2003 06:33 PM


All times are GMT -5. The time now is 06:26 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