What are TTYs >12 used for?
Clash Royale CLAN TAG#URR8PPP
up vote
6
down vote
favorite
Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1
and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports that it's connected to tty1
, and tty
in a GNOME terminal reports that it's connected to /dev/pts/N
. Only TTYs 1 through 12 can be accessed using the well-known Ctrl+Meta+F* keyboard shortcuts, so what are /dev/ttyN
13 through 64 used for?
linux tty
add a comment |
up vote
6
down vote
favorite
Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1
and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports that it's connected to tty1
, and tty
in a GNOME terminal reports that it's connected to /dev/pts/N
. Only TTYs 1 through 12 can be accessed using the well-known Ctrl+Meta+F* keyboard shortcuts, so what are /dev/ttyN
13 through 64 used for?
linux tty
May I ask why you ask about12<N<64
instead of7<N<64
? Are 7<N<13` any different from12<N<64
, or you already know what 7<N<13` are used for?
– Tim
Nov 30 at 19:47
@Tim I've added a clarification.
– l0b0
Dec 1 at 8:12
add a comment |
up vote
6
down vote
favorite
up vote
6
down vote
favorite
Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1
and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports that it's connected to tty1
, and tty
in a GNOME terminal reports that it's connected to /dev/pts/N
. Only TTYs 1 through 12 can be accessed using the well-known Ctrl+Meta+F* keyboard shortcuts, so what are /dev/ttyN
13 through 64 used for?
linux tty
Related to TTY numbers, it looks like there are 64 TTYs (find /dev -name 'tty[0-9]*' | cut -c 9- | sort -n | tail -n 1
and documentation). tty0 is the current virtual console, Ctrl+Meta+F1 reports that it's connected to tty1
, and tty
in a GNOME terminal reports that it's connected to /dev/pts/N
. Only TTYs 1 through 12 can be accessed using the well-known Ctrl+Meta+F* keyboard shortcuts, so what are /dev/ttyN
13 through 64 used for?
linux tty
linux tty
edited Dec 1 at 8:11
asked Apr 4 '13 at 12:12
l0b0
27.4k17113240
27.4k17113240
May I ask why you ask about12<N<64
instead of7<N<64
? Are 7<N<13` any different from12<N<64
, or you already know what 7<N<13` are used for?
– Tim
Nov 30 at 19:47
@Tim I've added a clarification.
– l0b0
Dec 1 at 8:12
add a comment |
May I ask why you ask about12<N<64
instead of7<N<64
? Are 7<N<13` any different from12<N<64
, or you already know what 7<N<13` are used for?
– Tim
Nov 30 at 19:47
@Tim I've added a clarification.
– l0b0
Dec 1 at 8:12
May I ask why you ask about
12<N<64
instead of 7<N<64
? Are 7<N<13` any different from 12<N<64
, or you already know what 7<N<13` are used for?– Tim
Nov 30 at 19:47
May I ask why you ask about
12<N<64
instead of 7<N<64
? Are 7<N<13` any different from 12<N<64
, or you already know what 7<N<13` are used for?– Tim
Nov 30 at 19:47
@Tim I've added a clarification.
– l0b0
Dec 1 at 8:12
@Tim I've added a clarification.
– l0b0
Dec 1 at 8:12
add a comment |
3 Answers
3
active
oldest
votes
up vote
8
down vote
Again, as I answered to this question, it is entirely up to whoever sets the system up. Normally only a limited number of getty
s are started, as people nowadays use X instead of a tty (or use screen(1)
...), starting more than a handful is waste. If you want to start getty
s on all 64, feel free.
The pty
(and some other exotic starting letters) are pseudo tty
s, faked by software to run e.g. xterm
s and other tty
users, in contrast to the "real" tty
s (which aren't so real anymore...).
add a comment |
up vote
4
down vote
Normally they are unused .
All tty13
–tty63
, when not specially activated, cost only 3 × 51 special files in /dev/
(one tty
, one vcs
, and one vcsa
for each console), and 51 NULL pointers in the kernel memory. When a console is unused, kernel doesn’t allocate any data for it (besides aforementioned pointer in vc_cons
).
Ask Linus Torvalds why he choose #define MAX_NR_CONSOLES 63
(and not 31
, for example) in tty.h
.
add a comment |
up vote
1
down vote
Computers or other devices running Linux can have any number (including 0) of keyboards or input device of any shape and layout connected to them which can have any number of function keys.
The kernel in its default configuration allows up to 63 virtual consoles to be allocated and provides an API to map input events to switching consoles, and also to allocate/deallocate/switch console programmatically (see the ioctl_console(2)
man page).
The loadkeys
utility can be used to load that mapping, dumpkeys
to dump it.
For instance, here with a typical British basic USB PC keyboard (with F1 .. F12 keys) connected to a PC running Ubuntu 18.04, dumpkeys
indicates that consoles 1 to 12 can be switched to with Alt-F1 to Alt-F12, consoles 13 to 24 with AltGr-F1 to AltGr-F12, consoles 25 to 36 with Alt+Shift+F1 to Alt+Shift+F12, and I can use Alt+Left and Alt+Right to cycle through consoles (which allows me to access consoles above 36).
And I can allocate more consoles with openvt
(though it's enough to open the tty device to allocate it) or switch between them with chvt
.
add a comment |
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
8
down vote
Again, as I answered to this question, it is entirely up to whoever sets the system up. Normally only a limited number of getty
s are started, as people nowadays use X instead of a tty (or use screen(1)
...), starting more than a handful is waste. If you want to start getty
s on all 64, feel free.
The pty
(and some other exotic starting letters) are pseudo tty
s, faked by software to run e.g. xterm
s and other tty
users, in contrast to the "real" tty
s (which aren't so real anymore...).
add a comment |
up vote
8
down vote
Again, as I answered to this question, it is entirely up to whoever sets the system up. Normally only a limited number of getty
s are started, as people nowadays use X instead of a tty (or use screen(1)
...), starting more than a handful is waste. If you want to start getty
s on all 64, feel free.
The pty
(and some other exotic starting letters) are pseudo tty
s, faked by software to run e.g. xterm
s and other tty
users, in contrast to the "real" tty
s (which aren't so real anymore...).
add a comment |
up vote
8
down vote
up vote
8
down vote
Again, as I answered to this question, it is entirely up to whoever sets the system up. Normally only a limited number of getty
s are started, as people nowadays use X instead of a tty (or use screen(1)
...), starting more than a handful is waste. If you want to start getty
s on all 64, feel free.
The pty
(and some other exotic starting letters) are pseudo tty
s, faked by software to run e.g. xterm
s and other tty
users, in contrast to the "real" tty
s (which aren't so real anymore...).
Again, as I answered to this question, it is entirely up to whoever sets the system up. Normally only a limited number of getty
s are started, as people nowadays use X instead of a tty (or use screen(1)
...), starting more than a handful is waste. If you want to start getty
s on all 64, feel free.
The pty
(and some other exotic starting letters) are pseudo tty
s, faked by software to run e.g. xterm
s and other tty
users, in contrast to the "real" tty
s (which aren't so real anymore...).
edited Apr 13 '17 at 12:36
Community♦
1
1
answered Apr 4 '13 at 12:31
vonbrand
14.1k22644
14.1k22644
add a comment |
add a comment |
up vote
4
down vote
Normally they are unused .
All tty13
–tty63
, when not specially activated, cost only 3 × 51 special files in /dev/
(one tty
, one vcs
, and one vcsa
for each console), and 51 NULL pointers in the kernel memory. When a console is unused, kernel doesn’t allocate any data for it (besides aforementioned pointer in vc_cons
).
Ask Linus Torvalds why he choose #define MAX_NR_CONSOLES 63
(and not 31
, for example) in tty.h
.
add a comment |
up vote
4
down vote
Normally they are unused .
All tty13
–tty63
, when not specially activated, cost only 3 × 51 special files in /dev/
(one tty
, one vcs
, and one vcsa
for each console), and 51 NULL pointers in the kernel memory. When a console is unused, kernel doesn’t allocate any data for it (besides aforementioned pointer in vc_cons
).
Ask Linus Torvalds why he choose #define MAX_NR_CONSOLES 63
(and not 31
, for example) in tty.h
.
add a comment |
up vote
4
down vote
up vote
4
down vote
Normally they are unused .
All tty13
–tty63
, when not specially activated, cost only 3 × 51 special files in /dev/
(one tty
, one vcs
, and one vcsa
for each console), and 51 NULL pointers in the kernel memory. When a console is unused, kernel doesn’t allocate any data for it (besides aforementioned pointer in vc_cons
).
Ask Linus Torvalds why he choose #define MAX_NR_CONSOLES 63
(and not 31
, for example) in tty.h
.
Normally they are unused .
All tty13
–tty63
, when not specially activated, cost only 3 × 51 special files in /dev/
(one tty
, one vcs
, and one vcsa
for each console), and 51 NULL pointers in the kernel memory. When a console is unused, kernel doesn’t allocate any data for it (besides aforementioned pointer in vc_cons
).
Ask Linus Torvalds why he choose #define MAX_NR_CONSOLES 63
(and not 31
, for example) in tty.h
.
edited Apr 13 '17 at 12:37
Community♦
1
1
answered Sep 14 '15 at 17:24
Incnis Mrsi
1,296720
1,296720
add a comment |
add a comment |
up vote
1
down vote
Computers or other devices running Linux can have any number (including 0) of keyboards or input device of any shape and layout connected to them which can have any number of function keys.
The kernel in its default configuration allows up to 63 virtual consoles to be allocated and provides an API to map input events to switching consoles, and also to allocate/deallocate/switch console programmatically (see the ioctl_console(2)
man page).
The loadkeys
utility can be used to load that mapping, dumpkeys
to dump it.
For instance, here with a typical British basic USB PC keyboard (with F1 .. F12 keys) connected to a PC running Ubuntu 18.04, dumpkeys
indicates that consoles 1 to 12 can be switched to with Alt-F1 to Alt-F12, consoles 13 to 24 with AltGr-F1 to AltGr-F12, consoles 25 to 36 with Alt+Shift+F1 to Alt+Shift+F12, and I can use Alt+Left and Alt+Right to cycle through consoles (which allows me to access consoles above 36).
And I can allocate more consoles with openvt
(though it's enough to open the tty device to allocate it) or switch between them with chvt
.
add a comment |
up vote
1
down vote
Computers or other devices running Linux can have any number (including 0) of keyboards or input device of any shape and layout connected to them which can have any number of function keys.
The kernel in its default configuration allows up to 63 virtual consoles to be allocated and provides an API to map input events to switching consoles, and also to allocate/deallocate/switch console programmatically (see the ioctl_console(2)
man page).
The loadkeys
utility can be used to load that mapping, dumpkeys
to dump it.
For instance, here with a typical British basic USB PC keyboard (with F1 .. F12 keys) connected to a PC running Ubuntu 18.04, dumpkeys
indicates that consoles 1 to 12 can be switched to with Alt-F1 to Alt-F12, consoles 13 to 24 with AltGr-F1 to AltGr-F12, consoles 25 to 36 with Alt+Shift+F1 to Alt+Shift+F12, and I can use Alt+Left and Alt+Right to cycle through consoles (which allows me to access consoles above 36).
And I can allocate more consoles with openvt
(though it's enough to open the tty device to allocate it) or switch between them with chvt
.
add a comment |
up vote
1
down vote
up vote
1
down vote
Computers or other devices running Linux can have any number (including 0) of keyboards or input device of any shape and layout connected to them which can have any number of function keys.
The kernel in its default configuration allows up to 63 virtual consoles to be allocated and provides an API to map input events to switching consoles, and also to allocate/deallocate/switch console programmatically (see the ioctl_console(2)
man page).
The loadkeys
utility can be used to load that mapping, dumpkeys
to dump it.
For instance, here with a typical British basic USB PC keyboard (with F1 .. F12 keys) connected to a PC running Ubuntu 18.04, dumpkeys
indicates that consoles 1 to 12 can be switched to with Alt-F1 to Alt-F12, consoles 13 to 24 with AltGr-F1 to AltGr-F12, consoles 25 to 36 with Alt+Shift+F1 to Alt+Shift+F12, and I can use Alt+Left and Alt+Right to cycle through consoles (which allows me to access consoles above 36).
And I can allocate more consoles with openvt
(though it's enough to open the tty device to allocate it) or switch between them with chvt
.
Computers or other devices running Linux can have any number (including 0) of keyboards or input device of any shape and layout connected to them which can have any number of function keys.
The kernel in its default configuration allows up to 63 virtual consoles to be allocated and provides an API to map input events to switching consoles, and also to allocate/deallocate/switch console programmatically (see the ioctl_console(2)
man page).
The loadkeys
utility can be used to load that mapping, dumpkeys
to dump it.
For instance, here with a typical British basic USB PC keyboard (with F1 .. F12 keys) connected to a PC running Ubuntu 18.04, dumpkeys
indicates that consoles 1 to 12 can be switched to with Alt-F1 to Alt-F12, consoles 13 to 24 with AltGr-F1 to AltGr-F12, consoles 25 to 36 with Alt+Shift+F1 to Alt+Shift+F12, and I can use Alt+Left and Alt+Right to cycle through consoles (which allows me to access consoles above 36).
And I can allocate more consoles with openvt
(though it's enough to open the tty device to allocate it) or switch between them with chvt
.
edited Dec 1 at 10:27
answered Dec 1 at 10:21
Stéphane Chazelas
296k54560905
296k54560905
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f71168%2fwhat-are-ttys-12-used-for%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
May I ask why you ask about
12<N<64
instead of7<N<64
? Are 7<N<13` any different from12<N<64
, or you already know what 7<N<13` are used for?– Tim
Nov 30 at 19:47
@Tim I've added a clarification.
– l0b0
Dec 1 at 8:12