Find the answer to your Linux question:
Results 1 to 6 of 6
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 ...
  1. #1
    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?

  2. #2
    Trusted Penguin Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,319
    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://linuxcounter.net/

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    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.

  4. #4
    Just Joined!
    Join Date
    Jul 2009
    Posts
    2
    I see. Thanks both of you.
    I am now crystal clear about it now. XD

  5. #5
    Linux Engineer hazel's Avatar
    Join Date
    May 2004
    Location
    Harrow, UK
    Posts
    913
    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!"

  6. #6
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •