Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Newbie > difference between a Linux console and a virtual terminal

Forgot Password?
 Linux Newbie   If you're new to the wonderful world of Linux, start here!

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 07-13-2009   #1 (permalink)
Just Joined!
 
Join Date: Jul 2009
Posts: 2
Question difference between a Linux console and a virtual terminal

I just installed my very 1st Linux box few days ago.. as well as reading a book...

Anyway, here is my question:
What is the difference between a Linux console (where we get when booting into a no desktop environment Linux box) and a virtual terminal (where we use when execute it from a desktop environment)?

Apparently, the xterm virtual terminal by default is the virtual terminal emulated in my ubuntu 9.04. Also, I noticed I have a few other types of terminals stored under /usr/share/terminfo and I can see there is a "linux" under "l" directory. I assume it is the linux console.

So, why the terminal emulation package under ubuntu 9.04 use "xterm" instead of the "linux", when it is a Linux system (why it need to go all the hesitation when there is a Linux's "linux console)?

Summarize, there are 2 questions:
1. what is the difference between a Linux console and a virtual terminal?
2. Why use other virtual terminal when there is a default "linux" console stored under /usr/share/terminfo/l in the desktop environment?
B3Co0L is offline  


Reply With Quote
Old 07-13-2009   #2 (permalink)
Trusted Penguin
 
Roxoff's Avatar
 
Join Date: Aug 2005
Location: Nottingham, England
Posts: 2,830
Well really there is very little difference. You can pretty much do the same things with either terminal type without noticing the difference, they both run the same shell (probably BASH) based on your user settings. There are, of course, subtle differences which make them more suited for particular purposes - in X for instance, you can launch graphical apps from the command line. From the text-mode terminal you can use your system without having X loaded and running (useful for resolving system problems), there are other differences too, but as a regular user you will hardly need or notice any difference. Stick to using the X-based terminal if you have to use one - it's more user-friendly (cut/select/paste, easy scrolling with the mouse, uses your desktop settings for input language, etc.).

The reason there are several terminals is that this is Linux. That means you are not tied to one tool for a job, and can excercise your own choice. You could even write your own if you want. xterm is probably used because it's a very mature application, and has seen many years trouble-free use. If you prefer to use another, then feel free to do so. Try them all out and make your own mind up. You're free to do that.
__________________
Linux user #126863 - see http://counter.li.org/
Roxoff is offline   Reply With Quote
Old 07-13-2009   #3 (permalink)
Linux Engineer
 
Join Date: Nov 2007
Location: Córdoba (Spain)
Posts: 1,495
From the average user view point there's little difference, other that these that are inherent to X-based programs. About being able to launch X programs, well, it's not scrictly true that you can't do so as well from pure text consoles, you just need to let the shell know in which display to start. For example, if you have launched X on another VT, you can use something like:

Code:
DISPLAY=:0.0 whatever_program
As long as you have permissions over that X session, of course.


About the variety of terminals, they usually exist for a given reason. xterm is pretty much the standard, and you will find it on most linuxes and other OSes, rxvt was born as a more featureful terminal, and rxvt-unicode came out because there wasn't anything with good utf8 suppot by that time, however nowadays it has evolved into a very complete product with lots of features that range from eye candy to other more advanced and not so widely used features.

Others like eterm, konsole or gnome-terminal are about integration with a given desktop or wm and about ease of use, with things like menus, config dialogs, etc.

There are also others that feature a quake-like console that can shade when you are not using it.

To suit all tastes.
i92guboj is offline   Reply With Quote
Old 07-13-2009   #4 (permalink)
Just Joined!
 
Join Date: Jul 2009
Posts: 2
I see. Thanks both of you.
I am now crystal clear about it now. XD
B3Co0L is offline   Reply With Quote
Old 07-13-2009   #5 (permalink)
Linux User
 
hazel's Avatar
 
Join Date: May 2004
Location: Harrow, UK
Posts: 481
A further point which might interest you is that linux virtual consoles are much easier to read than even a maximised xterm. You might therefore prefer then for reading documentation.
__________________
"I'm just a little old lady; don't try to dazzle me with jargon!"
hazel is offline   Reply With Quote
Old 07-13-2009   #6 (permalink)
Linux User
 
vickey_20's Avatar
 
Join Date: Mar 2009
Location: Mumbai, India
Posts: 493
Quote:
Originally Posted by B3Co0L View Post
1. what is the difference between a Linux console and a virtual terminal?
ans: Linux provide different type of console which include
Code:
Physical Console
Virutal Console
Serial Console
System Console
The difference between a Linux console and a virtual console is that when a Virtual console is launched i.e when you login, the login scripts like /etc/profile and /etc/profile.d/ /etc/bashrc and many more, which is not the case in the local console called pts as you are already logged in as a VLU( Valid Linux User).
Quote:
Originally Posted by B3Co0L View Post
2. Why use other virtual terminal when there is a default "linux" console stored under /usr/share/terminfo/l in the desktop environment?
I think the answer for the 1 question pretty much ans this one too.
__________________
Only if I could understand the man pages
Registered Linux user #492640
OS: RHEL4,5 ,RH 9,Ubuntu
vickey_20 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:23 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2