Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 :-(,
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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
Distribution: Slackware (mainly) and then a lot of others...
Posts: 855
Rep:
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 .
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.
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........
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.