Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-16-2004, 10:31 AM   #1
LQ Newbie
Registered: Nov 2003
Location: Germany
Distribution: Slackware 7.0 - 10.0
Posts: 26

Rep: Reputation: 15
is there a way to switch to a tty with a command?

There is a lil' question i got is it possible to switch with a command to a specified tty ?

I want to switch on my server to tty12 on boot up to view the syslog.
There is no keyboard connected only a monitor to view all the bad logs 8)
Old 01-16-2004, 12:15 PM   #2
Registered: Feb 2003
Location: Atlanta, GA
Distribution: RHAS 2.1, RHEL3, RHEL4, SLES 8.3, SLES 9, SLES9_64, SuSE 9.3 Pro, Ubuntu, Gentoo
Posts: 335

Rep: Reputation: 32
Not sure but here is a W.A.G.

What if mingetty was run only on tty 12?

Found in inittab:

# Run gettys in standard runlevels
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

Maybe change to:

# Run gettys in standard runlevels
12:2345:respawn:/sbin/mingetty tty12

This is completely untested!!
Old 10-26-2006, 02:13 AM   #3
Registered: Nov 2005
Distribution: xubuntu, grml
Posts: 451

Rep: Reputation: 37
/wipes the dust from the keyboard. For the next one looking for this:

switch with a command to a specified tty?
use chvt
change foreground virtual terminal
So to switch to terminal 12:
chvt 12
Old 12-17-2009, 08:26 PM   #4
LQ Newbie
Registered: Dec 2009
Posts: 1

Rep: Reputation: 0
thanks for wiping the dust from the keyboard :)

Originally Posted by muha View Post
/wipes the dust from the keyboard. For the next one looking for this:

use chvt
change foreground virtual terminal
So to switch to terminal 12:
chvt 12
works like a charm.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
executing a command from tty sending it to an x display poiuytrewq Linux - Newbie 1 04-20-2005 10:22 PM
command to get tty number D. Marowa Linux - General 5 06-06-2004 07:47 PM
Multiple tty in command line tearinox Linux - General 2 02-12-2004 10:28 AM
Bash: tty: command not found p0rt Linux - General 5 10-02-2003 11:38 AM
Need to switch tty or send system msgs to tty2 adrianphicks Linux - General 1 08-01-2003 07:33 PM

All times are GMT -5. The time now is 01:49 PM.

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