Maximum Allowed Number of TTYs Defined in Kernel Headers

kernellinuxptytty

What's the maximum allowed number of TTYs?

I found pty.max, but is there anything similar for TTYs? Or is it defined as a fixed value in kernel headers, I couldn't find that

Best Answer

In case you're referring Linux virtual consoles as TTYs, their number by default is 64 and this is defined in include/uapi/linux/vt.h inside the Linux kernel source tree. The thing you're looking for is NR_CONSOLES.

Related Question