really good reply 
thank you

----- Original Message ----
From: Cameron Simpson <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Sent: Sunday, April 15, 2007 5:40:11 AM
Subject: [LINUX_Newbies] Re: difference between terminal and console









  


    
            On 13Apr2007 23:42, abhishek misra <abhishekfishy2000@ yahoo.com> 
wrote:

| what is the difference between terminal and console in Linux terms



A terminal is any character based interface to the system, usually

running a login prompt and issuing a command line shell. Generally,

_real_ terminals are peripherals to the system. For example, a keyboard

and monitor attached to a serial port on a machine on older shared

systems.



Things like xterm, gnome-terminal, rxvt, Konsole etc are terminal

_emulators_; they present a convenient "command line in a window"

iterface as would have been found on a physical terminal. However,

instead of having a physical connection to a serial port they attach

to a logical device called a pseudo-terminal inside the OS.



The console is the main terminal to the system. At boot, that is where

the boot messages appear and the first login prompt. When a system is

"single user", the console will usually be the only available terminal.



So:



| Let me know if following understanding is correct.

| 

| Terminal is an interface between the user and Linux system, which user

| to make requests to the system , the system can present its response

| and also error messages if any.



It's _an_ interface. It is character based, and usually running a command

shell like bash. Otherwise, yes.



| Under Linux each terminal  is represented by a device file listed as /proc/tty



Probably /dev/tty, depending on context. That's a special device that is

a handy name for "the current terminal", regardless of which actual

terminal you are using. Shell scripts etc may want that.



| There are three types of terminals serial, virtual and pseudo .



A physical terminal will usually have a serial port as its interface, and

connect to a serial port on the host machine. Systems with a video card will

usually present one or more virtual terminals on the display attached to the

card.  A terminal emulator (xterm etc) will connect to a pseudo-terminal

instead of a serial port.  



| The X Window System uses pseudo terminals 



Terminal emulator _programs_ running inside an X11 display will use

pseudo terminals as part of their work.



| co:2345:respawn: /sbin/agetty ttyS0 115200 vt100-nav

| 1:2345:respawn: /sbin/mingetty tty1

| 2:2345:respawn: /sbin/mingetty tty2

| 3:2345:respawn: /sbin/mingetty tty3

| 4:2345:respawn: /sbin/mingetty tty4

| 5:2345:respawn: /sbin/mingetty tty5

| 6:2345:respawn: /sbin/mingetty tty6

| 

| # Run xdm in runlevel 5

| x:5:respawn: /etc/X11/ prefdm -nodaemon

| 

| The above suggests that 'co'  or  console   is  actually the  serial terminal 



For this systems, yes. 



| 1-6 are virtual terminals (clt-alt F[1-6])



Um, yes, on a linux box. Ok, you have virtual terminals.



| x is the pseudo terminal  used by the X Window System



No. "x" is just a label (as are the others). The window system will take over

one of the virtual terminals if it is running on the system console (not the

serial port - usually the keyboard/monitor attached to the system video card).



| the login program is  run on all these terminals for given set of run levels  
  



Yes, except for the 'x" line, where prefdm is run.



Cheers,

-- 

Cameron Simpson <[EMAIL PROTECTED]> DoD#743

http://www.cskk. ezoshosting. com/cs/



The optimist proclaims that we live in the best of all possible worlds;

the pessimist fears this is true. - Branch Cabell, The Silver Stallion



    
  

    
    




<!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
.bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a {
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc {
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o {font-size:0;}
.MsoNormal {
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
.replbq {margin:4;}
-->







__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

[Non-text portions of this message have been removed]



To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/LINUX_Newbies/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to