$ sudo chvt 1
$ chvt 1
Couldn't get a file descriptor referring to the console
$ tty
/dev/pts/3
음? 무슨 차이지?
그리고 왜... 안바뀌는거야?
/etc/init$ ls -al tty*
-rw-r--r-- 1 root root 348 4월 17 2012 tty1.conf
-rw-r--r-- 1 root root 333 4월 17 2012 tty2.conf
-rw-r--r-- 1 root root 333 4월 17 2012 tty3.conf
-rw-r--r-- 1 root root 333 4월 17 2012 tty4.conf
-rw-r--r-- 1 root root 232 4월 17 2012 tty5.conf
-rw-r--r-- 1 root root 232 4월 17 2012 tty6.conf
아무튼.. 6개의 가상 터미널은 /etc/init에서 tty?.conf를 통해 뜨게 되는건가?
/etc/init$ cat tty1.conf
# tty1 - getty
#
# This service maintains a getty on tty1 from the point the system is
# started until it is shut down again.
start on stopped rc RUNLEVEL=[2345] and (
not-container or
container CONTAINER=lxc or
container CONTAINER=lxc-libvirt)
stop on runlevel [!2345]
respawn
exec /sbin/getty -8 38400 tty1
[링크 : http://computernetworkingnotes.com/linux-file-system-basic-commands/login-linux-terminal.html]
[링크 : http://computernetworkingnotes.com/system-administrations/inittab.html]