6

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

daisy
  • 54,555

1 Answers1

7

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.