What are TTYs >12 used for?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
6
down vote

favorite
1












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?










share|improve this question























  • 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














up vote
6
down vote

favorite
1












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?










share|improve this question























  • 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












up vote
6
down vote

favorite
1









up vote
6
down vote

favorite
1






1





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?










share|improve this question















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 1 at 8:11

























asked Apr 4 '13 at 12:12









l0b0

27.4k17113240




27.4k17113240











  • 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
















  • 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















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










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 gettys 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 gettys on all 64, feel free.



The pty (and some other exotic starting letters) are pseudo ttys, faked by software to run e.g. xterms and other tty users, in contrast to the "real" ttys (which aren't so real anymore...).






share|improve this answer





























    up vote
    4
    down vote













    Normally they are unused .

    All tty13tty63, 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.






    share|improve this answer





























      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.






      share|improve this answer






















        Your Answer








        StackExchange.ready(function()
        var channelOptions =
        tags: "".split(" "),
        id: "106"
        ;
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function()
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled)
        StackExchange.using("snippets", function()
        createEditor();
        );

        else
        createEditor();

        );

        function createEditor()
        StackExchange.prepareEditor(
        heartbeatType: 'answer',
        convertImagesToLinks: false,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: null,
        bindNavPrevention: true,
        postfix: "",
        imageUploader:
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        ,
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        );



        );













        draft saved

        draft discarded


















        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

























        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 gettys 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 gettys on all 64, feel free.



        The pty (and some other exotic starting letters) are pseudo ttys, faked by software to run e.g. xterms and other tty users, in contrast to the "real" ttys (which aren't so real anymore...).






        share|improve this answer


























          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 gettys 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 gettys on all 64, feel free.



          The pty (and some other exotic starting letters) are pseudo ttys, faked by software to run e.g. xterms and other tty users, in contrast to the "real" ttys (which aren't so real anymore...).






          share|improve this answer
























            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 gettys 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 gettys on all 64, feel free.



            The pty (and some other exotic starting letters) are pseudo ttys, faked by software to run e.g. xterms and other tty users, in contrast to the "real" ttys (which aren't so real anymore...).






            share|improve this answer














            Again, as I answered to this question, it is entirely up to whoever sets the system up. Normally only a limited number of gettys 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 gettys on all 64, feel free.



            The pty (and some other exotic starting letters) are pseudo ttys, faked by software to run e.g. xterms and other tty users, in contrast to the "real" ttys (which aren't so real anymore...).







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:36









            Community

            1




            1










            answered Apr 4 '13 at 12:31









            vonbrand

            14.1k22644




            14.1k22644






















                up vote
                4
                down vote













                Normally they are unused .

                All tty13tty63, 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.






                share|improve this answer


























                  up vote
                  4
                  down vote













                  Normally they are unused .

                  All tty13tty63, 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.






                  share|improve this answer
























                    up vote
                    4
                    down vote










                    up vote
                    4
                    down vote









                    Normally they are unused .

                    All tty13tty63, 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.






                    share|improve this answer














                    Normally they are unused .

                    All tty13tty63, 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.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 13 '17 at 12:37









                    Community

                    1




                    1










                    answered Sep 14 '15 at 17:24









                    Incnis Mrsi

                    1,296720




                    1,296720




















                        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.






                        share|improve this answer


























                          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.






                          share|improve this answer
























                            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.






                            share|improve this answer














                            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.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Dec 1 at 10:27

























                            answered Dec 1 at 10:21









                            Stéphane Chazelas

                            296k54560905




                            296k54560905



























                                draft saved

                                draft discarded
















































                                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.




                                draft saved


                                draft discarded














                                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





















































                                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






                                Popular posts from this blog

                                How to check contact read email or not when send email to Individual?

                                Bahrain

                                Postfix configuration issue with fips on centos 7; mailgun relay