LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 02-14-2003, 05:31 PM   #1
iggymac
Member
 
Registered: Aug 2001
Posts: 77

Rep: Reputation: 15
what's the diff between console and terminal?


Hey all,

Stupid one:

On a SUN box, there is a clear distiction between the Console and a terminal window. Console gets system messgaes, etc.

On Mac OS X, there are seperate apps for Console and Terminal.

But on Linux I cannot figure out what or where console is, and if it is different than any terminal or xterm.

Do you have to go into alt-F1-F6 for consoles, or are those different?

And is there a difference between a console and a terminal? If so, what?

Thanks.

Bret
 
Old 02-14-2003, 06:41 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Perhaps these explain

http://www.tldp.org/HOWTO/Text-Terminal-HOWTO.html
http://linuxconsole.sourceforge.net/
 
Old 02-14-2003, 07:15 PM   #3
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Would it be safe to say that consoles work locally and terminals work remotely?
 
Old 02-15-2003, 12:57 AM   #4
iggymac
Member
 
Registered: Aug 2001
Posts: 77

Original Poster
Rep: Reputation: 15
Ok. I have read the Terminal Howto (well, most of it), and this is what I have figured out so far (someone let me know if this is incorrect):

The linux Console is equivalent (or directed) to /dev/tty0 which is in turn equivalent to whichever /dev/tty you are logged into (ALT-F1 though F6). I am not sure how console and tty0 are redirected to the "current display" but it seems to work that way. The $TERM type is also "linux".

A terminal window run from X Windows is apparently a /dev/pts/x device with $TERM type xterm (in my case in redhat 8.0). Not sure exactly what a pty/ptm/pts device is. That part of the howto is over my head!

Does this sound correct?

If so, doen't this mean that, unless you are currently logged into a virtual console (ALT-F1-F6), you will not see console messages?

And lastly, is xterm still the general standard in terminal emulation from X? The howto seemed to indicate it is obsolete. And can xterm (or /dev/pts/x) display console messages?

Thanks again.

Bret

Last edited by iggymac; 02-15-2003 at 12:59 AM.
 
Old 02-15-2003, 01:15 AM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
That's essentially it, I believe.

When you log into X, you are switched to vt7 (if you are in X you need to hold down control as well as alt-F<N>). You can see the console messages for X by switching to the virtual terminal you logged into, say control-alt-F1. You see the messages generated by X. Alt-F7 takes you back to x.

I was just using the term x console to refer to whatever X terminal emulation program you prefer to use, be it gnome-terminal, aterm, eterm or whatever.

You can monitor the error messages in an x terminal this way (or you may have some log monitoring gui tool)
Code:
[phil@fancypiper phil]$ su -
Password: 
[root@fancypiper root]# tail -f /var/log/messages
 
Old 02-15-2003, 02:29 AM   #6
iggymac
Member
 
Registered: Aug 2001
Posts: 77

Original Poster
Rep: Reputation: 15
That's great info. Thanks!

I had assumed that more than just /var/log/messages went to the console, but the simpler the better, I guess.

And I am going to push my luck and ask about one more thing in this thread.

The Terminal Howto brings up an interesting question that I can't find the answer to:

What exactly is the difference between a terminal emulator like xterm, and a communications terminal app like minicom (or hyperterminal in windows)? Aren't they btoh terminal emulators? If so, why the need for comm apps to issue AT commands to modems?

Sorry. Last groups of questions.

Thanks again!

Bret
 
Old 02-15-2003, 02:43 AM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
In linux, you can pass commands directly to the modem with the x terminal or a virtual terminal. See Troubleshooting ISP Connection Problems.
Quote:
If so, why the need for comm apps to issue AT commands to modems?
Because Windows charges so much for so little maybe?
 
Old 02-15-2003, 10:15 PM   #8
iggymac
Member
 
Registered: Aug 2001
Posts: 77

Original Poster
Rep: Reputation: 15
Great ppp article.

Thanks again!

Bret
 
Old 03-06-2003, 04:01 AM   #9
correro
Member
 
Registered: Oct 2002
Distribution: RedHat 8.0
Posts: 140

Rep: Reputation: 15
i'm getting even more confused after reading your posts

is it correct to think that
when you log in locally, you are on console; while when you log in remotely, you're on terminal?

but seems to me there can be only one console to a machine....
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
serial terminal console Alfexy Slackware 4 10-22-2004 07:15 PM
Dual Boot diff Hard Disk diff OS on Suse 9.1 wilhem Linux - Newbie 1 08-13-2004 06:06 PM
Difference between a console and a terminal vmniza Linux - General 1 02-29-2004 03:54 AM
console vs terminal correro Linux - General 1 03-06-2003 03:54 AM
RH 8.0 and terminal or console mikeshn Linux - General 1 11-17-2002 12:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration