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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
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: Slackware (mainly) and then a lot of others...
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 .
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.
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.