maux
Star on GitHub Buy me a coffee

Manual / chvt

chvt(1)

CHVT(1) General Commands Manual CHVT(1)

chvt - switch virtual console

chvt number

Switch the active console to number, from 1 through 4. The command writes the maux console-switch escape sequence to standard output. Its normal use is from a console:

chvt 2

Each console retains its own screen and shell context.

/usr/man/CHVT this page

vidmode(1), sh(1)

Exit status is 0 for a valid request, 2 for a missing or invalid number.

Redirecting standard output writes the escape bytes into the destination; it does not switch the console.

September 19, 2026 maux