CHAPTER 19

image

Linux Console

The Raspbian Linux console is configured (or assumed) by the kernel command line. See the console option described in Chapter 16.

Available Consoles

The list of consoles is available through the /proc/consoles pseudo file:

$ cat /proc/consolestty1                          −WU (EC p   )     4:1ttyAMA0                       −W(E  p   )  204:64

The organization and flags displayed are described in Tables 19-1 and 19-2. The major and minor numbers are confirmed in the following example session output:

$ lsl /dev/tty1 /dev/ttyAMA0crwrw−−−− 1 root tty     4,   1 Jan 21 00:06  /dev/tty1crwrw−−−− 1 root tty     204, 64 ...

Get Mastering the Raspberry Pi now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.